all groups > asp.net webcontrols > october 2004 >
You're in the

asp.net webcontrols

group:

Response.Redirect question


Response.Redirect question niv
10/31/2004 2:32:00 PM
asp.net webcontrols:
private void Button1_Click(object sender,
System.EventArgs e)
{
Response.Redirect("regpopup.aspx");

}

Re: Response.Redirect question Alvin Bruney [MVP]
10/31/2004 8:41:05 PM
is regpopup part of the application?
is the code getting executed?
is the page load function of regpopup.aspx getting called?

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
[quoted text, click to view]

RE: Response.Redirect question ranganh
11/1/2004 6:33:01 AM
Hi,

If you are using visual studio.net and having the function in code behind,
go to design view and double-click on the Button1 such that the event handler
delegate is initiated.

Secondly, if you are using inline code (webmatrix or simply putting the code
in the aspx page itself), you need to specify the onclick attribute for the
button in the declaration as <asp:button id="button1"
onclick="Button1_Click"> etc.,

Finally, put a response.write before the response.redirect and check if the
response is sent to the client.

Thanks.

[quoted text, click to view]
Re: Response.Redirect question Robert Koritnik
11/2/2004 2:59:58 PM
Most likely your Click event doesn't fire...

--
RobertK
{ Clever? No just smart. }

[quoted text, click to view]

AddThis Social Bookmark Button