updatepanel的Triggers属性如何关联gridview模板中的控件
我设计了一个updatepanel控件,只想通过updatepanel外部的一个gridview内的一个模板的linkbutton控件的单击事件刷新此updatepanel,但是页面运行时提示找不到linkbutton空间。
updatepanel的id是“UpdatePanel1”
linkbutton的id是“LB_UserName”
页面报错如下:
A control with ID 'LB_UserName' could not be found for the trigger in UpdatePanel 'UpdatePanel1'.
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.InvalidOperationException: A control with ID 'LB_UserName' could not be found for the trigger in UpdatePanel 'UpdatePanel1'.
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
。。。。。。。