在DropDownList3 = e.Item.FindControl("DropDownList3")之后加一个判断:
If DropDownList3 Is Nothing Then Exit Sub
另外,把DropDownList3 = e.Item.FindControl("DropDownList3")改成:
DropDownList3 = CType(e.Item.FindControl("DropDownList3"), DropDownList)
If DropDownList3 Is Nothing Then Exit Sub
另外,把DropDownList3 = e.Item.FindControl("DropDownList3")改成:
DropDownList3 = CType(e.Item.FindControl("DropDownList3"), DropDownList)
解决方案 »
- 系统部署后,有用户不能使用系统的某些功能
- 来者有分(在线,特急),给我的网站起个名字,个人网络俱乐部,以IT为主题的!
- 我想学ASP.net,用C#请大家推荐几本好书。谢谢了。
- 服务器控件,触发JavaStript ????
- 如何把"*.aspx.cs"里的一段多行文本,动态显示在页面上?
- *****Web自定义控件中创建子控件的事件委托为什么不被触发?*****
- 请问把一个<input type="CheckBox">绑定到DataGrid后,怎样才能批量去出它的值,谢谢.
- 文件路径问题!!!
- imagebutton你会用吗?
- 那些源代码往什么地方添?
- 关于在Microsoft.Web.UI.Controls.TreeView中利用xml的方法,有人能告诉我吗
- ■■ CheckBoxList问题-----------高分提问
if(e.Item.ItemIndex<0)return;