-
button properties
I'm using a web control button on my web page. Is there a propery I could set so if it's click it will take me to a new page?
I tried....
<asp:button id="btnMenu" onclick="new_page.aspx>
<a href="new_page.aspx"><asp:button id="btnMenu"></a>
both have given me errors. Can someone tell me the right way?
thanks,
eye
-
IF your remove he runat server tag from the form you can code like good old asp but why would you want to do that Why not just code behind the button and make it go to another page?
-
Got to the Click event in the doe behind page, and pop in:
Code:
Server.Transfer("newpage.aspx")
- gaffa
-