Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I have a textbox , assign required field validator and i
have two buttons 1) save 2) cancel , i want the validator
run only when i click save button, don't validate cancel
button , what to do?

Answer Posted / divakar upadhyay

You have take the validation summary and put ValidationGroup On validation summary for e.g Validationgroup="a" and Put Same ValidationGroup on Save Button and take RequiredField Validator and Set TargetControl i.e Textbox Id should be assigned to the Target Control and There is no need of validationgroup to the cancel button.
In This Way Save Button Will be Validate and Cancel Button should not be validate.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the service stream content?

1031


Explain cashing in asp.net.

990


What is the use of data set in asp.net?

956


What does asp.net stand for?

1135


How to find last error which occurred?

1038


Explain method to handle error using HttpError in Web API?

1059


Explain the various authentication mechanisms in asp.net.

991


Why mvc is better than asp.net? : Asp.Net MVC

953


What is the meaning of TestApi?

1081


What are directives in asp.net? List down all the important directives.

940


Describe the difference between inline and code behind - which is best in a?

1172


Should I delete cookies?

968


What is .net framework and what are the main components of it?

845


Is post back in asp.net?

958


What do you mean by role-based security?

986