DropDownList DropDownList1=(DropDownList)Toolbar1.FindControl ("id");
DropDownList1.DataSource=dataset1.Tables[0].DefaultView ;
DropDownList1.DataTextField="text";
DropDownList1.DataValueField="value";
DropDownList1.DataBind ();
DropDownList1.DataSource=dataset1.Tables[0].DefaultView ;
DropDownList1.DataTextField="text";
DropDownList1.DataValueField="value";
DropDownList1.DataBind ();
解决方案 »
- 求 <ASP.NET办公自动化系统开发实例导航> 一书
- 站内信Session问题
- ID参数这样给值与数据中的字段怎么得来的呢?
- ActiveX让tab键失效的问题
- 高分请求关于OA的源文件谢谢大家。
- 如何在asp.net中显示多页tif文件?500分求高手解答
- 如何将数据库中的图片显示在页面上的Image控件上?急!!!!!!!
- 如何获得输出类型的参数
- 为什么我的页面过长却不显示滚动条?有的页面显示!
- Asp.net中的服务器端表单的提交问题!
- 初学水晶报表遇到的又一问题:“登录失败”?
- 怪问题:datagrid绑定列(是绑定到数据库表中的datetime类型字段),明明是被我格式化为shordate了,可是还是没有把时间去掉呢?
DropDownList DropDownList1=(DropDownList)Toolbar1.FindControl ("id");
执行过后DropDownList1还是未定义。
到DropDownList1.DataSource=dataset1.Tables[0].DefaultView 时
出现如下错误 :未将对象引用设置到对象的实例
帮忙啊。
if (DropDownList1!=null)
DropDownList1.DataSource=dataset1.Tables[0].DefaultView
DropDownList1.DataSource=dataset1.Tables[0].DefaultView
就不执行下面的DropDownList1.DataSource=dataset1.Tables[0].DefaultView 看来是DropDownList DropDownList1=(DropDownList)Toolbar1.FindControl ("id");
的问题,哪位大虾帮忙啊。