首页 > 其他 > 详细

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

时间:2014-05-31 19:12:24      阅读:344      评论:0      收藏:0      [点我收藏+]

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

SplendidCRM中给来自EditView中的listbox控件设置选中值或数据源,布布扣,bubuko.com

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

原文:http://www.cnblogs.com/seapub/p/3762405.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!