Disable Validation Controls???

Results 1 to 2 of 2

Thread: Disable Validation Controls???

  1. #1
    Join Date
    Dec 1969

    Default Disable Validation Controls???

    I have a UserControl called "Header" with a few link buttons on it. The link buttons click event causes the page to redirect to other pages in my site. This control is included on every page in my site. When I am on a page that contains a form, like my registration form, the link buttons on the Header control do not work because all the validation controls fire. Is there a way to prevent the Validation controls on a page from being executed? When I change my header to use <A HREF> instead if <ASP:LinkButton> the page redirects fine - but I want to stick with code behind instead of putting hard HREF's on the page.

  2. #2
    Join Date
    Dec 1969

    Default RE: Disable Validation Controls???

    On the buttons in the header set the property CauseValidation=false. These buttons will bypass validation and work no matter what.<BR><BR>hth,<BR>James

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts