Click or drag to resize
KaxAjaxControlRedirect Method
Redirects the page to another location.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public void Redirect(
	string location
)

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.
Redirect(C#)
private void Button1_Click(object sender, System.EventArgs e)
{
    KaxAjaxConsole1.Redirect("support.aspx");
}
Redirect(VB)
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
KaxAjaxConsole1.Redirect("support.aspx")
End Sub 'Button1_Click
See Also