开发者

Asp.net validator issue

I am using a require field validator for a textbox in asp.net application. Problem is that when there is no value in textbox then no button on the web page do not works even page redirection button for back page also not performing function and validator gives err msg which开发者_开发百科 i define But if I put sum value in it then all btn works correctly.

Can anyone tell me that how can i overcome this problem


Set the CausesValidation attribute to False on the button and link controls that don't require validation (such as your back button).

<asp:button id="btnBack" runat="server" causesvalidation="false"></asp:button>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜