避免点击按钮时重新加载页面 [英] avoid page reload on button click
本文介绍了避免点击按钮时重新加载页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个日历控件和一个按钮,可以在我的网页上显示日历。当我点击按钮显示clndr然后它工作但页面重新加载。我应该怎么做才能避免页面重新加载。 Plzz有人帮助我......
I hv a calender control and a button to display the calender on my webpage. when i click on the button to display the clndr then it work but the page get reload. What should i do avoid page reload. Plzz someone help me......
推荐答案
嘿那里,
你可以添加这个Button的OnClientClick事件中的JavaScript:
Hey there,
You can add this JavaScript in the Button's OnClientClick event:
OnClientClick="return false;"
或者如果你已经使用一个JavaScript函数,然后在JavaScript函数结束时添加 return false;
。
希望它有所帮助,请告诉我。
Azee ...
or if you already using a JavaScript function, then add return false;
at the end of the JavaScript function.
Hope it helps, let me know.
Azee...
您是否使用Java Script显示日历?
Are you using Java Script to display the Calendar?
这篇关于避免点击按钮时重新加载页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文