我在页面用checklist控件,在网上找了些代码如下:    但不懂得怎么获值 了, 我想这样  string Country1 = GetCtrlSelValue(Country,string text); 但是不知道第二个参数string text是填什么了?帮帮忙哦
 public virtual string GetCtrlSelValue(Control listctrl, string type)
    {
        string str_Value = "";
        switch (type)
        {
            //===要选择的是value===   
            case "value":
                {                    if (listctrl is CheckBoxList)
                    {
                        for (int i = 0; i < ((CheckBoxList)listctrl).Items.Count; i++)
                        {
                            if (((CheckBoxList)listctrl).Items[i].Selected == true)
                            {
                                str_Value = str_Value + ((CheckBoxList)listctrl).Items[i].Value + ",";
                            }
                        }
                        if (str_Value != "")
                        {
                            str_Value = str_Value.Substring(0, str_Value.Length - 1);
                        }
                    }
                    break;
                }        }
        return str_Value;    }