I am having four text boxes in my web application. I am
setting Required Field validator to each Text box. And I am
having two buttons in my application. If i clicked the
first button only first two text box validation will get
fire. Dont show error message for remaining two text box.
If i clicked second button last two text box validation
will get fired. It will not consider the first two
validation controls. That is how to enable and disable the
validation controls.

Answer Posted / navin chandra pandit

To solve above prob., u can use validationGroup property of
ctrl. Those validation ctrls. that want to validat with a
btn ctrl., place in one group while the other place in 2nd
group simply.

Hope u got the point now.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find last error which occurred in Asp.net ?

687


how to transfer the file from client to server using asp.net

593


What are the advantages of the code-behind feature?

546


What is class and object in asp.net?

497


What is the difference between a page theme and a global theme?

546






I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?

1471


Can I tap into other windows livetm services?

574


How we can force all the validation controls to run?

527


Explain code snippet to register exception filters from controller?

632


How to handle errors in Web API?

628


What are the ways to sending the data in ASP.NET page?

571


What is the basic difference between asp and asp.net?

522


Difference between singleton and singlecall.

574


What is the best Macanism to clear the Cache in asp.net

716


What is Dynamic Web and discuss its usage with the help of real life examples?

600