button imagebutton ,解决方案
button imagebutton ,
在这俩个按钮上都加 OnClientClick事件,在前台判断某一个条件后,如果不符合条件就返回,页面还是会刷新一下,可以让他不刷新吗
------解决方案--------------------
as following->
OnClientClick="if(confirm('continue....')) return true; else return false;"
------解决方案--------------------
如楼上
http://www.icgbbs.com
------解决方案--------------------
在这俩个按钮上都加 OnClientClick事件,在前台判断某一个条件后,如果不符合条件就返回,页面还是会刷新一下,可以让他不刷新吗
------解决方案--------------------
as following->
OnClientClick="if(confirm('continue....')) return true; else return false;"
------解决方案--------------------
如楼上
http://www.icgbbs.com
------解决方案--------------------
- HTML code
OnClientClick="return YourFunction();"//这里函数名前加上return function YourFunction() { if(condition...) { //do something... return true; } else { //do something... return false; } }
------解决方案--------------------