I have a bunch of divs on my page that are added at run time dynamically. When any of the dynamically added divs are clicked - All need to call the same function in my code behind. Each of the divs must pass it's own ID to the function. I can't use web methods as the function needs to identify which div was clicked and then show/hide/populate other controls on the page.
Cheers guys
Header Controls and stuff go here <div id="div_Footer" class="HoverEdit" title="Click To Edit" runat="server" onclick="EditDiv(div_Footer)">
Footer Controls and stuff go here
</div>
and then in the code behind :
Sub EditDiv(ID_ofDiv As String)
'Do some stuff to the controls on the page
'Swapping tabs, showing /hiding controls etc.
End Sub