开发者

Asp.net validator issue

开发者 https://www.devze.com 2022-12-11 13:00 出处:网络
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 fo

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

精彩评论

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