如何获取复选框树视图值

时间:2012-12-15 20:10:40

标签: javascript jquery asp.net

我在按钮点击时使用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按钮上的复选框值???

0 个答案:

没有答案