开发者

How to use Validation Control Properly in Webpage

开发者 https://www.devze.com 2023-03-10 03:49 出处:网络
I am working on a project in which I have a web page named as Booking. I use validation controls as per requirement. They all work properly.

I am working on a project in which I have a web page named as Booking. I use validation controls as per requirement. They all work properly.

The Problem is that when user ope开发者_如何学Gon a Booking page and want to move another page without filling any detail. All the validation controls show error message.

How can I stop that?


Set the CauseValidation property of the control you are using to navigate to the other page to false.


Refer to the following for more information about validation:

Validating ASP.NET Server Controls


on the control you use to move to the other page there a CauseValidation proprety that you could set to false.

0

精彩评论

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