Results 1 to 4 of 4

Thread: button properties

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    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

  2. #2
    Lively Member
    Join Date
    Aug 2002
    Location
    outerspace
    Posts
    126
    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?
    "All those who wonder are not lost" -j.r.r tolkien

  3. #3
    Lively Member
    Join Date
    Sep 2002
    Posts
    89
    Got to the Click event in the doe behind page, and pop in:
    Code:
    Server.Transfer("newpage.aspx")
    - gaffa

  4. #4

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width