any clickable control

C

Corno

Hi all,

Is there a webcontrol or an htmlcontrol available that does a postback on a
onclick but is more generic that a button? For example I would like to be
able to postback when I click on a div, or on a table cell.
I found out that I cannot use the HTMLGenericControl as it does not have a
'click' event.

TIA,

Corno
 
G

Guest

Try with an image

<input type="image" src="..." />

On the click event of the image call MySend

<SCRIPT language="javascript">

function MySend()

{

document.F.action="yourpage.asp"
document.F.method="POST"
document.F.submit()

}



</SCRIPT>
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top