I'm not used to write VB code so my example is in C# but maybe it can help you get started.
It's probably not the cleanest way to implement this, but i'll give it a try:
HTML
<div id="div_Footer" class="HoverEdit" title="Click To Edit" runat="server" onclick="EditDiv(this)">
Footer Controls and stuff go here
</div>
Client
<script type="text/javascript">
function EditDiv(s,e){
var id = $(s).attr("id");
__doPostBack(id,id);
}
</script>
Server
private void Page_Load(object sender, EventArgs e)
{
var arg = Request.Form["__EVENTTARGET"]; 'this will be empty on your first page request, but if the user click a div it will cause a postback to server, so this event will be fired again and will contain the div ID.
if(arg != null)
{
string divID = (string)arg;
'call your method with the argument.
}
}
More information about this can be found here:
http://wiki.asp.net/page.aspx/1082/dopostback-function/
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…