Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6168033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:36:59+00:00 2026-05-23T22:36:59+00:00

is it possible to disable validation of all items inside a panel programatically in

  • 0

is it possible to disable validation of all items inside a panel programatically in vb.net?

i can’t seem to figure it out.

i disabled all fields inside a panel, but they still cause the page to validate on submit.

this is what i have now:

Public Sub DisableControls(ByVal parent As Control)
    Dim cCon As Control
    For Each cCon In parent.Controls
        If (TypeOf cCon Is TextBox) Then
            CType(cCon, TextBox).Enabled = False
            CType(cCon, TextBox).CausesValidation = False
        End If
        If (TypeOf cCon Is DropDownList) Then
            CType(cCon, DropDownList).Enabled = False
            CType(cCon, DropDownList).CausesValidation = False
        End If
    Next
End Sub

it disables the controls just fine,but validations till works 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:37:00+00:00Added an answer on May 23, 2026 at 10:37 pm

    CausesValidation just disables the behavior of your controls so that when one of them causes a post-back, validation is skipped.

    You have to disable validators.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to programatically disable form validation in MVC2? I'm hoping there is
Is it possible to disable the options dialog box for a .net console application?
Possible Duplicate: .NET - What’s the best way to implement a catch all exceptions
Is it at all possible to disable the The webpage you are viewing is
Is it possible to disable request validation for HttpHandlers? A bit of background -
Is it possible to disable the Select all button in the upper left corner
Is it possible to disable a trigger for a batch of commands and then
Is it possible to disable AJAX without disabling JavaScript completely?
Is it possible, using actionscript 3 to disable the right click menu? Any help
At some point I need to display a disabled (greyed out by disabled=disabled attribute)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.