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

Define page fragment caching?

528


What is the use of placeholder control?

552


How you will handle session when deploying application in more than a server?

594


Can we set master page as a start page?

547


Explain the difference between singleton and single call?

535






What is razor? : asp.net mvc

557


What is sdlc process?

528


What are the differences between application object and session object?

495


How is it possible for .NET to support many languages?

308


Difference between web user control and web custom control?

504


Explain the advantages of passport authentication.

513


What is a session in asp.net?

539


What is the purpose of App_Code folder in ASP.NET? Why we this?

616


What is difference between abstract class and an interface?

505


explain code with datachaching with example

1698