我的页面上有一堆在运行时动态添加的 div。当点击任何动态添加的 div 时 - 都需要在我的代码中调用相同的函数。每个 div 都必须将它自己的 ID 传递给函数。我不能使用 web 方法,因为该函数需要识别单击了哪个 div,然后显示/隐藏/填充页面上的其他控件。
干杯伙计们
标题控件和其他东西去这里 <div id="div_Footer" class="HoverEdit" title="Click To Edit" runat="server" onclick="EditDiv(div_Footer)">
Footer Controls and stuff go here
</div>
然后在后面的代码中:
Sub EditDiv(ID_ofDiv As String)
'Do some stuff to the controls on the page
'Swapping tabs, showing /hiding controls etc.
End Sub