LinkButton not working due to validation control field
In my .aspx page which derives from a master page I have a contact form which uses some validation, such as the RequiredFieldValidator and RegularExpressValidator.
At top of my page I have a link bar and whenver I am at contact.aspx I can't navigate to the other pages as if 开发者_运维问答that I need to fill in the necessary data so that it satisfies the validator. How can I fix this?
Set the CausesValidation
property of the controls in your link bar (I'm assuming they're LinkButtons) to False
.
精彩评论