Sending the user back a page

  • Thread starter Thread starter Simon Harvey
  • Start date Start date
S

Simon Harvey

Hi,

What would the easiest way be to send a user back a page when he clicks a
asp.net image control (representing a button).

Is it possible to fire an ASP.net event when this happens?

Thanks

Simon
 
Simon,

I assume you don't want an ImageButton control because you want to avoid an
extra postback.

You can do this:
<A href="your page url"><asp:Image id="Image1" runat="server" ImageUrl="you
image url" /></A>

or, if all you need is just a static image:
<A href="your page url"><IMG src="you image url"></A>

Eliyahu
 
Hi,

That works, the only problem is when you hover over the image, the cursor
doesnt change to show that the are is clickable.

Is there any easy way to change this? Perhaps by adding an href or
something?

Thanks for your help

simon
 
Simon,

You can set cursor shape in a stylesheet with attribute cursor:hand.

Eliyahu
 
Back
Top