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 the good practice to implement validations in aspx page?
Can you change a Master Page dynamically at runtime?
What is syntax code to send email from an asp.net application?
What is the main function of url routing system in asp.net mvc? : asp.net mvc
Explain the different types of directives in .net?
Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?
What is http only cookie?
Explain the difference between an exe and a dll?
How to disable cut, copy and paste in TextBox using jQuery in asp.net?
Is LINQ performance wise better or using sqlcommand?
Explain culture and uiculture values.
Explain the asp.net mvc folder conventions? : asp.net mvc
Explain what are webservices?
We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?
Differentiate between structure and class.