Mar 20, 2010, 2:42 AM
problem with Response.Redirect
<ext:Button ID="btnxxx" runat="server" Text="XXX" >
<AjaxEvents>
<Click OnEvent="btn_click" />
</AjaxEvents>
</ext:Button>
protected void btn_click(object sender, AjaxEventArgs e)
{
Response.Redirect("page2.aspx");
}
Hi,
Currently i'm using VS2008..
In page1.aspx, i have kept one button and i made Response.Redirect("page2.aspx");
in page1.aspx.cs.
when i click this button it is throwing an error-
Server Error in '/MyProject' Application---Object reference not set to an instance of an object.
what is the solution ..plz reply me