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.
Inline |
<form target = strTarget | '_blank' | '_parent' | '_self' | '_top' ... > |
Script |
HtmlForm.Target [ = strTarget | '_blank' | '_parent' | '_self' | '_top' ] |
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.
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.
HtmlForm Members