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

i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?

2304


Elaborate differentiation between Cache and Application?

931


What is a 1x1 pixel?

892


What is the purpose of asp.net?

964


Which protocol is used to call a web service?

1007


Do you know caching feature?

911


What is the concept of view state in asp.net?

982


Which authentication uses a combination of windows and iis authentication?

1032


In a Repeater control how one can provide an alternating color scheme ?

1027


What is difference between ispostback and autopostback in asp net?

971


What is the request flow used for asp.net mvc framework? : asp.net mvc

936


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

2109


Explain the components of web form in asp.net

982


What does clearing cache?

914


What are different methods of session maintenance in asp.net?

1009