KaxAjaxControlRedirect Method |
Redirects the page to another location.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic void Redirect(
string location
)
Public Sub Redirect (
location As String
)
public:
void Redirect(
String^ location
)
member Redirect :
location : string -> unit
Parameters
- location
- Type: SystemString
Return Value
Type:
None.
Remarks
This method is usually used in the AJAX event handler instead of
Response.Redirect(). It provides the only way to redirect to a page which does not
contain any AJAX control at all.
Examples
The following code redirects from a button's click event handler. Note the control
should be ajaxified in order redirection to work.
private void Button1_Click(object sender, System.EventArgs e)
{
KaxAjaxConsole1.Redirect("support.aspx");
}
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
KaxAjaxConsole1.Redirect("support.aspx")
End Sub
See Also