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
What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?
Describe the application event handlers in ASP.NET?
What are the memory-mapped files?
Why is it preferred to not use finalize for clean up?
How many languages are supported by .NET at present time?
Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)
What is application variable in asp.net?
What is the use of session state and application state and difference between them?
If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?
Why the javascript validation not run on the asp.net button but run successfully on the html button?
What is a postback ispostback and autopostback in asp net?
Can you explain the importance of finalize method in .net?
what are configuration files?
Where can I get the details on migration of existing projects using various technologies to asp.net?
What are the different types of proxy patterns?