Hello i have a Big ASP Page and i must set in every ASP Button this:
CausesValidation="False"
to work. If don’t it cant run a codebehind function.
can somebody explain to me why this is so?
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.
It seems you are using Validation controls in your page. Your page must pass the validation before postback to server. Below is the functionality of CausesValidation property:
The CausesValidation property specifies if a page is validated when a
Button control is clicked.
Page validation is performed when a button is clicked by default.
This property is mostly used to prevent validation when a cancel or reset button is clicked.