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
Explain how dot net compiled code will become platform independent?
What’s difference between “optimistic” and “pessimistic” locking?
Explain the reason why the javascript validation not run on the asp.net button but run successfully on the html button?
What are url fragments?
What are the advantages of using Master Pages?
What is the use of web.config file?
if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....
how to elimainte the similar data from the different tables
What is the use of session?
Where would you use an ihttpmodule, and what are the limitations of any?
What is the difference between mvc and asp.net? : Asp.Net MVC
How you can return View from ASP.NET Web API method?
What does aspcompat="true" mean?
What is the caspol.exe tool used for?
Explain weak typing and strong typing.