CheckBoxList 的一种使用方式

<tr>

           <td width="11%">

           </td>

           <td colspan="3" nowrap="nowrap">

               <table id="tblChooseToSign"width="100%">

<tr></tr>

                   <tr>

                       <td width="25%" nowrap>

                           <input id="btnChooseToSign"type="button"value="点击会签至其他单位" onclick="javascript:ChooseToSign(this);" runat="server"style="width: 180px;

                                cursor: hand;"/>&nbsp;&nbsp;

                       </td>

                       <td width="75%">

                       </td>

                   </tr>

               </table>

           </td>

       </tr>

       <tr>

           <td nowrap="noWrap">

               <asp:Label ID="lblChooseToSign"runat="server"Text="会签其他单位" style="display:none"></asp:Label>

               <br />

               <asp:Label ID="Label1" runat="server"ForeColor="Red"Style="display: none" Text="(请勿选取自己部门主管)"></asp:Label></td>

           <td colspan="3">

               <div id="divChooseToSign"style="overflow-y: scroll; overflow-x:hidden; width: 90%; height: 200px; border: solid 1px #999; padding: 5px; background-color: #eee; display:none">

                   <asp:CheckBoxList ID="CheckBoxList_Fac"runat="server"RepeatDirection="Horizontal"

                       RepeatColumns="5">

                   </asp:CheckBoxList>

               </div>

           </td>

       </tr>

              //点击会签其他单位后才显示签核人列表

                   function ChooseToSign(obj)

                   {

                      try

                       {

                           document.getElementById("tblChooseToSign").style.display="none";

                           document.getElementById("divChooseToSign").style.display="block";

                           document.getElementById("lblChooseToSign").style.display="block";

                           document.getElementById("Label1").style.display="block";

                         

                       }

                      catch(e){

                           document.getElementById("tblChooseToSign").style.display="none";

                           document.getElementById("divChooseToSign").style.display="block";

                           document.getElementById("lblChooseToSign").style.display="block";

                           document.getElementById("Label1").style.display="block";

                       }

                     

                   }

DataSet DS_Fac = pr_c.getAllFac();//会签单位主管

     //会签单位主管

           this.CheckBoxList_Fac.DataSource = DS_Fac;

           this.CheckBoxList_Fac.DataTextField = "ITEM_NAME";

           this.CheckBoxList_Fac.DataValueField = "ITEM_VALUE";

           this.CheckBoxList_Fac.DataBind();

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值