R
R.A.M.
Hello,
I have very simple problem which I present here second time, because I
haven't got a solution.
I need to process asp:Button click at server. I have written (my
experience is little) in .aspx:
<asp:Button ID="GoTo" runat="server"
Text="Go To" OnClick="GoTo_Click" />
and in .aspx.cs I have written with Visual Studio:
....
protected void Page_Load(object sender, EventArgs e)
{
GoTo.Click += new EventHandler(this.GoTo_Click);
}
public void GoTo_Click(object sender, EventArgs e)
{
Response.Redirect(...);
}
....
I don't understand why it doesn't work - GoTo_Click is not called.
Could you explain me please what's wrong? (I copied MSDN sample code).
Thank you!!!
/RAM/
I have very simple problem which I present here second time, because I
haven't got a solution.
I need to process asp:Button click at server. I have written (my
experience is little) in .aspx:
<asp:Button ID="GoTo" runat="server"
Text="Go To" OnClick="GoTo_Click" />
and in .aspx.cs I have written with Visual Studio:
....
protected void Page_Load(object sender, EventArgs e)
{
GoTo.Click += new EventHandler(this.GoTo_Click);
}
public void GoTo_Click(object sender, EventArgs e)
{
Response.Redirect(...);
}
....
I don't understand why it doesn't work - GoTo_Click is not called.
Could you explain me please what's wrong? (I copied MSDN sample code).
Thank you!!!
/RAM/