SplendidCRM中給來自EditView中的listbox控件設置選中值或數據源

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

------------------------------- io

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

相關文章
相關標籤/搜索