P
pamelafluente
I have a simple form with 1 DIV:
<form id="form1" runat="server">
<div>
<div id="MyDiv" style="width: 94px; height: 22px" onmousedown
= "What??">
This is my div</div>
</div>
</form>
and the following simple code (behind):
Partial Class _Default
Inherits System.Web.UI.Page
Sub MouseClicked(ByVal ID As String)
Response.Write("Was clicked the div " & ID)
End Sub
End Class
I want that when the user clicks on the DIV there is a postback and
the function MouseClicked(ByVal ID As String) is executed responding
the ID of the DIV. Can anyone show me how to do this simple thing ?
Do I have to use session variables??
Thank you.
Pam
<form id="form1" runat="server">
<div>
<div id="MyDiv" style="width: 94px; height: 22px" onmousedown
= "What??">
This is my div</div>
</div>
</form>
and the following simple code (behind):
Partial Class _Default
Inherits System.Web.UI.Page
Sub MouseClicked(ByVal ID As String)
Response.Write("Was clicked the div " & ID)
End Sub
End Class
I want that when the user clicks on the DIV there is a postback and
the function MouseClicked(ByVal ID As String) is executed responding
the ID of the DIV. Can anyone show me how to do this simple thing ?
Do I have to use session variables??
Thank you.
Pam