Cloudandwind Posted February 27, 2004 Posted February 27, 2004 Hi. How do we disable RequiredFieldValidator. I have a web site you must enter some info, the textbox fields required inputs, but i also have a cancel-button. how do we disable RequiredFieldValidator??? Quote
Administrators PlausiblyDamp Posted February 27, 2004 Administrators Posted February 27, 2004 http://www.123aspx.com/reserr.aspx?res=31456 Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
MorningZ Posted February 27, 2004 Posted February 27, 2004 err.. wouldnt a much easier suggestion just be to put CausesValidation="false" in the Cancel button? Quote If you make it idiot proof, they'll build a better idiot :-)
Administrators PlausiblyDamp Posted February 27, 2004 Administrators Posted February 27, 2004 The server side code you suggest would never execute as the validators would prevent the post back occurring. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.