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 / sneha gupta

set validationGroup = 'Save' for save button and textbox
but leave it blank for cancel button.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is session id in web application?

755


What does session_start () do?

817


What are server objects?

702


Explain about asp.net state management?

787


What is preprocessor in .net and type, where it use?

868


How is the asp.net mvc architecture different from others? : asp.net mvc

679


Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

732


How can you send an email message from an asp.net web page?

693


Where would you use an ihttpmodule, and what are the limitations if any?

736


Can you use c# without .net?

737


Where session variables are stored?

727


Explain State management in asp.net

801


What describes a query?

711


What are the two types of web pages?

698


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

808