Bootstrap

asp.net下绑定TextBox回车事件的解决方法

1.将页面上的回车事件都绑定到按钮上

 

 

2. 在OnPreRender事件中设定按钮客户端事件

 

 

大功告成了。

 

参考文章: http://www.sohelp.cn/page/blog/1319.htm

 

http://blog.chinaunix.net/u/24810/showart_188637.html

 

;