我在按钮单击时使用 Jquery 弹出窗口......并在弹出主体中制作 asp 树硬代码......
代码:
<div class="container">
<div class="headerpopup">
<asp:Label ID="lblPopupHeader" runat="server" CssClass="msg" Text="Select Fields" />
<asp:LinkButton ID="lbtnHideModal" runat="server" CssClass="close"
OnClientClick="$('#divSimplePopup').hideModal(); return false;" />
</div>
<div class="bodyAnd">
<div class="body" style="height: 250px; overflow: auto;">
<asp:TreeView ID="someTree" runat="server" ShowCheckBoxes="All" >
<Nodes>
<asp:TreeNode Text="Root">
<asp:TreeNode Text="Leaf" />
<asp:TreeNode Text="Branch">
<asp:TreeNode Text="Leaf" />
<asp:TreeNode Text="Leaf" />
</asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="Root">
<asp:TreeNode Text="Leaf" />
<asp:TreeNode Text="Leaf" />
<asp:TreeNode Text="Leaf" />
<asp:TreeNode Text="Leaf" />
</asp:TreeNode>
</Nodes>
<div class="foot">
<div class="footerpopup">
<asp:Button ID="btnOK" runat="server" Text="OK" Width="40px" CssClass="add-but" OnClientClick="treeClick();" />
<asp:Button ID="btnCncl" runat="server" Text="Cancel" CssClass="add-but"
OnClientClick="$('#divSimplePopup').hideModal(); return false;" />
</div>
</div>
</div>
我想要代码隐藏和服务器端的复选框值....知道我是如何在确定按钮上获得复选框值的吗???