我在按钮点击时使用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>
我想要代码隐藏和服务器端的复选框值....任何想法我如何获得OK按钮上的复选框值???