asp.net  click on image go to another .aspx page  - - - vb.net

GlobaLevel
GlobaLevel used Ask the Experts™
on
I have a masterpage that has the contentplaceholders set to dimension my content pages....

on my content .aspx page I want to an imagebutton so when the user clicks it will take them to another .aspx page with an onclick....
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2013

Commented:
You can use PostBackUrl property or you can use OnClick Event and do
Response.Redirect(toyourpage)
GlobaLevelProgrammer

Author

Commented:
do you have an actual example?
Top Expert 2013
Commented:
postbackurl:
 <asp:imagebutton id="CrossPostImageButton"
      imageUrl="Images\CrossPostButton.jpg"
      alternatetext="Post value to another page"
      postbackurl="SomePage.aspx"
      runat="Server">
    </asp:imagebutton>

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton.postbackurl.aspx
Top Expert 2013

Commented:
OnClick:
Sub ImageButton_Click(sender As Object, e As ImageClickEventArgs)  Handles ImageButton.Click
         Response.Redirect("Somepage.aspx")
      End Sub
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton.click.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial