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
How to turn off cookies for a page?
Why cyclomatic complexity is important?
How does http session work?
Name the tools or API for developing or testing web api?
How can you handle unmanaged code exceptions in asp.net?
What is custom attribute? How to create?
How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?
What is the advantage of mvc over asp.net? : Asp.Net MVC
Explain why datareader is useful?
How is the asp.net mvc architecture different from others? : asp.net mvc
What is the default authentication mode for asp.net?
What is caching? What are different ways of caching in asp.net?
What are navigation controls? How many navigation controls are there in ASP.NET 4.0?
What is view state management in asp net?
What is comparevalidator?