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
Define the term Scavenging in Caching?
What is server infrastructure & server components?
What is the use of view state?
What is & in a url?
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
What is Web Server Control Templates.?
What is the concept of postback in asp.net?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
What is session in asp.net?
Define xmlvalidatingreader class.
Define authentication and authorization.
Which of the following .NET framework supports Web API?
What is ascx?
What is difference Between Authentication and authorization?
Define repository pattern in mvc.net? : asp.net mvc