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] "niv" wrote:
> private void Button1_Click(object sender,
> System.EventArgs e)
> {
> Response.Redirect("regpopup.aspx");
>
> }
>
> Anyone know why this does not navigate to regpopup.aspx?