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 / kuldeep kumar

Use property CauseValidation="false" for the Cancel Button

Is This Answer Correct ?    87 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is asp.net mvc still used? : Asp.Net MVC

687


What is preprocessor in .net? Where it use?

709


3. What goals do you have in your career?

1605


Why is global asax is used?

794


What are the major built-in objects in ASP.NET?

791


What is HTTPModule and HTTPcontext? What is the use of each?

2199


What is xaml? Are xaml file compiled or built on runtime?

708


What are sessions used for?

754


Are cookies stored on server or client?

718


What is the use of session in web application?

686


What is session in web technology?

714


Explain about the .NET framework?

815


How many types of triggers are there in update panel?

770


What do you mean by query string?

709


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

715