Rahul
Rahul

Reputation: 961

How to use Validation Control Properly in Webpage

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 open 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?

Upvotes: 0

Views: 283

Answers (2)

Akram Shahda
Akram Shahda

Reputation: 14781

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

Upvotes: 2

DavRob60
DavRob60

Reputation: 3557

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

Upvotes: 2

Related Questions