Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

I've put a label on a form and i need to know when someone clicks on it. But it has no click event?

 

Does anyone know if I can add a click event handler or suggest a different control to use, I only need to display the text BACK> and have it clickable

 

Thanks

 

UPDATE: I've sorted it, I used a hyperlink control with javascript:history.go(-1) in its NavigateURL property

 

Works fine!

Edited by Mondeo
Posted

I use this all the time. You can apply styles to it to make it look like what you want it to also.

 

<input type="text" value="blah" readOnly="true" onclick="alert('foo');" />

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...