Results 1 to 2 of 2

Thread: ASP.net button help for newbie!

  1. #1
    Join Date
    Jan 2007

    ASP.net button help for newbie!

    I have a web form that I have created and have it so it sends an email with the information, which is exactly what I want. However, I need for the onClick to not only send the form but redirect the page to a specic htm page, and I haven't been able to figure out how to do that exactly. Right now the page shows hidden label information but I need a redirect to the other page.

    The button itself is coded:

    <asp:button runat="server" id="btnSendFeedback" Text="Send"
    OnClick="btnSendFeedback_Click" />

    My Sub for the button is:

    Sub btnSendFeedback_Click(sender as Object, e as EventArgs)

    Not sure if the whole entire Sub information is needed, please let me know if that is the case, etc. Can someone help me figure out where and how to place the redirect?

  2. #2
    Join Date
    Jun 2004
    Kansas City, MO
    You could just add the redirect in the OnClick Sub of the button.
    Sub btnSendFeedback_Click(sender as Object, e as EventArgs)
          'Code to Send Email 
    End Sub

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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