开发者

unable to call the code behind of button click after java script function is called

i have a form it has to be validated before code behind of button fires

< asp: button id="btn1" runat="server" usesubmittbehaviour="false" onclientclick="validate(this) return"/>

and there is click event in code behind, but when the validate ret开发者_如何学Pythonurns true click event of button not firing..


You should change

validate(this) return

with

return validate(this)

in the onclientclick attribute

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜