I am using a LinkButton to trigger an email template. When the LinkButton is clicked, I need to disable all field validation controls
I tried the causesvalidation property, but the validations are still triggered.
How can I do this in c# / asp.net?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, I don’t think you need to disable the validations controls. I assume that you have another button on the page that fires all validation but you just want to skip them for this button.
Use
CauseValidation = falseon your LinkButtonhttp://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.causesvalidation%28VS.80%29.aspx