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;
                            }
                        }
                    }

  • 相关阅读:
    MySQL经典面试题--SQL语句
    awk命令
    mysql安装配置
    notepad++使用
    Xshell使用
    说明
    对 MMO 游戏的调研
    对 VR 项目开发流程的调研
    对 Unity 动态加载资源的调研
    对 Unity 太空射击游戏的实践
  • 原文地址:https://www.cnblogs.com/candyzhmm/p/4255550.html
Copyright © 2011-2022 走看看