asp.net.ph

HtmlForm.Target Property

System.Web.UI.HtmlControls Namespace   HtmlForm Class


Sets or retrieves the target frame or window in which to render the results of information posted to the server.

Syntax


Inline <form target = strTarget | '_blank' | '_parent' | '_self' | '_top' ... >
Script HtmlForm.Target [ = strTarget | '_blank' | '_parent' | '_self' | '_top' ]

Property Value


strTarget The name of the target window or frame to load the results of information posted to the server.

Values must begin with a letter in the range of A-Z or a-z, except for these special values which begin with an underscore:

_blank Renders the content in a new, unframed window.
_parent Renders the content in the immediate frameset parent.
_self Renders the content in the current frame.
_top Renders the content in the full, unframed window.

The property is read/write with a default value of _top.

Remarks

Use this property to redirect and display the results of information posted to the server in another browser frame or window.

If there is no frame or window that matches the specified target, a new window is opened for the response.

Redirecting form POST results is an advanced task and is not recommended for simple postback requirements.

See Also

HtmlForm Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph