UserControl with GridView rowCommand not fired
2009-10-08 01:47
302 查看
问题:在page.aspx 中 ,添加了一个webUsercontrol,userControl 中有一个gridview,gird中有一个带有button的模 版, 当点击button时,gridview 没有触发rowCommand事件,而再次点则会触发。
解决方法: 没找到什么好方法。一个简单方法是在 usercontrol load 时,不管是否是 postback ,都去 rebind datasource to gridview。当然可以把datasource 缓存在session中,避免重复连接数据库。
解决方法: 没找到什么好方法。一个简单方法是在 usercontrol load 时,不管是否是 postback ,都去 rebind datasource to gridview。当然可以把datasource 缓存在session中,避免重复连接数据库。
相关文章推荐
- GridView RowCommand (handle with e.CommandArgument)
- Gridview之RowCommand,ButtonField[add buttons and use the RowCommand event to add custom functionality to the control]
- set-mark-command not working emacs with C-SPC
- GridView / RowCommand / e.CommandArgument
- could not start running tests with command 'pybot.bat'
- [XCode错误]XCode编译出错异常:ld: framework not found Kernel clang: error: linker command failed with e
- 【hibernate】关于org.hibernate.ObjectNotFoundException: No row with the given identifier exists 的快捷解决问题
- Not able to wire events in user control
- Login failed for user 'Tester'. Reason: Not associated with a trusted SQL Server connection.
- LR场景运行提示:This Vuser already started a transaction with the same name, and has not yet processed the
- 【hibernate】org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
- 关于Oracle adf 报Thread: JBO-25014: Another user has changed the row with primary key oracle.jbo.Key
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [cn.itcast.erp.auth.
- Problem: Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.
- java.lang.IllegalArgumentException: Path userLogin.jsp does not start with a
- Client Side Validation of GridView control with javascript
- the server has disconnected with an error. server message reads: a protocol error occurred.chang of username or service not allowedroot, (root,ssh-con
- gridview 中模板列无法响应row_command事件
- MySQL执行报错:ERROR 1148 (42000): The used command is not allowed with this MySQL version
- ld:framework not found Pods__ clang: error: linker command faild with code 1