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 many types of cookies are available in asp?

1011


Define static member?

937


Contrast OOP and SOA. What are tenets of each ?

2169


Where is the view state data stored?

938


Which method do you use to enforce garbage collection in .net?

903


Are there resources online with tips on asp to asp.net conversions?

989


How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?

4141


What is the difference between asp.net and mvc?

1054


What is Web API?

1100


what is the difference between response.write() and response.output.write()?

1109


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

2304


What is difference between URL and URI?

1053


What is the function used for removing an event listener?

977


List the events in page life cycle.

916


What is globalization and localization in asp net?

921