zoukankan      html  css  js  c++  java
  • 如何获取checkboxlist的多个选中项

                    string[] array = dt.Rows[0]["s_type"].ToString().Split('|');
                    foreach (ListItem m in cb_type.Items)
                    {
                        for (int i = 0; i < array.Length; i++)
                        {
                            if (m.Value == array[i])
                            {
                                m.Selected = true;
                            }
                        }
                    }
                    string[] strTerms = dt.Rows[0]["s_zhandian"].ToString().Split('|');
                    foreach (ListItem lItem in CB_zhandian.Items)
                    {
                        for (int i = 0; i < strTerms.Length; i++)
                        {
                            if (lItem.Value == strTerms[i])
                            {
                                lItem.Selected = true;
                            }
                        }
                    }

  • 相关阅读:
    NGINX学习(二)--nginx配置文件详解
    NGINX学习(一)--nginx的安装与启动
    Linux服务器参数查看命令
    记录工作中遇到的那些坑(一)--NGINX配置worker_connections
    Mysql视图触发器函数事务
    pymsql
    装饰器模型
    多进程属性和方法
    mysql
    FTP简单的大文件传输
  • 原文地址:https://www.cnblogs.com/candyzhmm/p/4255550.html
Copyright © 2011-2022 走看看