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

Securitywise What are the Enhancements in 2.0?

1492


What is a ashx file?

557


What is the purpose of asp.net?

544


how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool

1644


What is asp.net version?

530






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

616


How to prepare culture-specific formatting in .net.

517


What is the mvc model?

581


What symbol would you use to denote, the start of a code block in aspx views?

573


Why do we use datasource in asp.net?

525


How to use multiple scriptmanager controls in a web page?

606


They mostly asked difference between versions of technologies

955


benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks

1674


What is the used of "ispostback" property?

569


Can we set which type of comparison we want to perform by the CompareValidator control?

519