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

Explain how can we inherit a static variable?

783


What is difference between asp.net and asp?

777


What are the namespace classes used in asp.net mvc? : asp.net mvc

787


Where is the view state data stored in asp net?

791


What are the differnt types of handler in ASP.NET?

744


How you will handle session when deploying application in more than a server?

858


Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj

3053


What does asp in asp.net stand for?

746


What is web configuration file and how to use in web application

794


What is session start?

734


Disable Mouse right click on web page in asp.net?

779


What are early binding and late binding.

846


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1631


To get the values in two different controls to match which control you use it?

806


How can we secure the data which is send from client side to server? Like the login id and paasword needs to be authenticated on the server but we cannot send it in plain text into the server.One more thing we are not using the SSL here.

1717