SplendidCRM中给来自EditView中的listbox控件设置选中值或数据源

DropDownList list = this.findContol("aas") as DropDownList;
list.DataSource = new DataTable()

-------------------------------

Control ctl = this.FindControl("NAME");
            if (ctl != null)
            {
                if (ctl is DropDownList)
                {
                    DropDownList lst = ctl as DropDownList;
                    try
                    {
                        lst.SelectedIndex = 0;
                    }
                    catch (Exception ex)
                    {
                        SplendidError.SystemWarning(new StackTrace(true).GetFrame(0), ex);
                    }
                }
            }

上一篇:关于json格式字符串解析并用mybatis存入数据库


下一篇:Java中setCharAt()方法介绍