I have a bunch of divs on my page that are dynamically added at runtime. When you click any of the dynamically added divs - everyone needs to call the same function in my code. Each of the divs must pass its own function identifier. I can’t use web methods because the function needs to identify which div was clicked and then show / hide / fill other controls on the page.
Greetings guys
Header controls and more <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
source
share