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 are the various ways to send content from one page to another?
What are merge modules?
What is difference between viewstate and session in asp net?
Is post back property in asp net?
How does session work?
What is the difference between the asp and asp.net?
What are the steps involved to fill a dataset?
Is viewstate enabled by default?
What are client activated objects and server activated objects?
Is asp.net different from asp? If yes, explain how?
What is the difference between session object and application object?
What is difference between web config and global asax?
If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?
How does asp.net page work?
Explain the concept of View Model in MVC?