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 / nikki

Hi.......its very simple first of all take two validation
summary and first 2 textbox and 1 button and 1 summary give
the same validation group name and do same for other two
textboxes and i think u will get the solution...

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s the difference between asp.net web forms and asp.net mvc?

815


How to improve performance of web application asp.net mvc? : Asp.Net MVC

746


How many types of triggers are there in update panel?

787


How do we ensure view state has not tampered?

813


What’s the use of “GLOBAL.ASAX” file?

845


What is data grid view in asp.net?

709


What is postback in asp net?

774


What is the file extension of web service?

758


What is redirecting behavior?

732


What is new asp.net core?

788


What are the best practices to follow to secure connection strings in an ASP.NET web application?

787


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

833


how to include timer or counting time to display next page in asp.net

1834


What is the difference between system.stringbuilder and system.string

482


What is the difference between viewstate and hidden field in asp.net?

752