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

Disable Mouse right click on web page in asp.net?

586


Difference between using directive vs using statement?

511


Why SessionID changes in every request in asp.net?

552


What is server infrastructure & server components?

784


Can you use c# without .net?

552






What is the default authentication mode for asp.net?

568


What is Web Server Control Templates.?

589


Give 2 examples for scenarios when routing is not applied?

605


What are web beacons used for?

550


Explain how can you debug your .net application?

542


How many types of validators are there in asp net?

503


Define view state.

554


What are the new data controls in asp.net 2.0?

526


How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?

559


How would you turn off cookies on one page of your website?

540