开发者

Can't change an asp page because of a required validator

开发者 https://www.devze.com 2022-12-19 03:09 出处:网络
On one of my asp.net pages I have a few textboxes and a re开发者_如何学Cquired validator attached to them. Everything is ok with validation, but when I want to change page to another required validato

On one of my asp.net pages I have a few textboxes and a re开发者_如何学Cquired validator attached to them. Everything is ok with validation, but when I want to change page to another required validator doesn't allow it because I don't fill in a textbox :/

How to allowed change page without fill a validate textbox? I must create a condition in "exit page" (how is it named ?) event disabled required validation?

Please help ;)


If you're using some control to move to the next page, set it's CausesValidation property to False.

For example, if you're clicking a button that moves you to the next page, it would be like:

<asp:LinkButton id="myButton" runat="server" CausesValidation="False" .... />
0

精彩评论

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

关注公众号