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

Where would you use an ihttpmodule, and what are the limitations if any?

535


How do I open an ashx file?

545


Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?

568


How to you can limit Access to Web API to Specific HTTP Verb?

672


How many validators do ASP.NET have?

613






What is difference cookie and session?

530


Will session work if cookies is disabled?

531


Explain Authentication mechanism in dotnet

633


What is asp.net localization?

503


Write some code using interfaces, virtual methods, and an abstract class`

1587


How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.

625


Explain how do you deploy your asp.net application?

487


What is Dynamic Web and discuss its usage with the help of real life examples?

600


What does the orientation property do in a menu control?

537


What are client activated objects?

561