开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜