我按照这个程序为什么出错?
: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误:
行 217: //运用区段 = ((DropDownList)DetailsView1.Rows[5].Cells[1].Controls["运用区段"]).SelectedValue;
行 218: //运用区段 = ((DropDownList)DetailsView1.Rows[5].FindControl("DropDownList1")).Text;
行 219: 运用区段 = ((DropDownList)DetailsView1.Rows[5].Cells[1].FindContro("DropDownList4")).SelectedValue;
行 220: e.NewValues.Add("列尾主机", 运用区段);
行 221: //运用区段 = ((TextBox)DetailsView1.Rows[5].Cells[1].Controls[0]).Text;
谢谢!!!
: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误:
行 217: //运用区段 = ((DropDownList)DetailsView1.Rows[5].Cells[1].Controls["运用区段"]).SelectedValue;
行 218: //运用区段 = ((DropDownList)DetailsView1.Rows[5].FindControl("DropDownList1")).Text;
行 219: 运用区段 = ((DropDownList)DetailsView1.Rows[5].Cells[1].FindContro("DropDownList4")).SelectedValue;
行 220: e.NewValues.Add("列尾主机", 运用区段);
行 221: //运用区段 = ((TextBox)DetailsView1.Rows[5].Cells[1].Controls[0]).Text;
谢谢!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货