求助 一个让人纠结的小问题
protected void AllIndustry_RowDataBound(object sender, GridViewRowEventArgs e)
{
LinkButton del_button = e.Row.FindControl("Del_Btn") as LinkButton;
//del_button.Attributes.Add("onclick","javascript:return confirm('确定删除吗?删除后将不能回复')");
}
当让这句话del_button.Attributes.Add("onclick","javascript:return confirm('确定删除吗?删除后将不能回复')");执行的时候 出现这样的错误 “未将对象引用设置到对象的实例。”
昨天写了个和这个一摸一样的 能运行 今天再写的时候就出现错误了
太郁闷了