Image Button

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I added an ImageButton to my Asp.Net page but I don't know how to make
it load the page collection.aspx when it is pressed.

Could someone tell me how is this done?

Thanks,
Miguel
 
Miguel,
Image buttons traditionally work like normal buttons so they aren't
necessarily used to move to another page. If you just want it to go to
another page just insert an image and create a hyperlink around it. If you
want to perform an action before you send the person to another page, you
would create a click event for the image button and in the click event
handler you would perform your action, then use the
Response.Redirect("pagename") method to redirect to whatever page you need
to go to.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
In the ImageButton's click event you could add this code:

Server.Transfer("collection.aspx")
or
Response.Redirect("collection.aspx")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top