求动态绑定控件ID的值的方法!着急!
DataList 的 <ItemTemplate> 下面放了一个Label控件 我想动态绑定他的ID
<asp:Label ID='<%# Eval("QuestionID") %>' runat="server" Text='<%# Eval("QuestionContent") %>' ></asp:Label>
这么做是错误的 但是 我要用DOM抓Label的ID 来做其他功能,必须让Label的ID 不同
请问有什么方法吗? 一定要让Label的ID 不同,因为我要用JS来控制 鼠标拖拽Label 必须有不同的ID
<asp:Label ID='<%# Eval("QuestionID") %>' runat="server" Text='<%# Eval("QuestionContent") %>' ></asp:Label>
这么做是错误的 但是 我要用DOM抓Label的ID 来做其他功能,必须让Label的ID 不同
请问有什么方法吗? 一定要让Label的ID 不同,因为我要用JS来控制 鼠标拖拽Label 必须有不同的ID

浙公网安备 33010602011771号