any clickable control

  • Thread starter Thread starter Corno
  • Start date Start date
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
 
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>
 
Back
Top