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 7754915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:26:03+00:00 2026-06-01T12:26:03+00:00

I would like to turn off the dropdown PhoneHelp if phone is selected in

  • 0

I would like to turn off the dropdown PhoneHelp if phone is selected in the first dropdown box, but it doesn’t seem to be working. Here is the code:

.net

        <asp:DropDownList ID="ddlHowRec" runat="server">
            <asp:ListItem Value="" Text="Choose an option"></asp:ListItem>
            <asp:ListItem Value="mail" Text="Mail"></asp:ListItem>
            <asp:ListItem Value="e-mail" Text="E-mail"></asp:ListItem>
            <asp:ListItem Value="phone" Text="Call back"></asp:ListItem>
        </asp:DropDownList>


            <asp:Label ID="lblPhoneHelp" runat="server" AssociatedControlID="ddlPhoneHelp"></asp:Label>
        <asp:DropDownList ID="ddlPhoneHelp" runat="server">
            <asp:ListItem Value="" Text="Choose an option"></asp:ListItem>
            <asp:ListItem Value="yes" Text="Yes"></asp:ListItem>
            <asp:ListItem Value="no" Text="No"></asp:ListItem>
        </asp:DropDownList>

vb:

    Protected Sub ddlHowRec_SelectedIndexChanged(ByVal sender As Object, ByVal e As      System.EventArgs) Handles ddlHowRec.SelectedIndexChanged

    If ddlHowRec.SelectedValue = "phone" Then
        lblPhoneHelp.Enabled = False
    Else
        lblPhoneHelp.Enabled = True
    End If
 End Sub

Thank you

  • 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-06-01T12:26:04+00:00Added an answer on June 1, 2026 at 12:26 pm

    You are disabling lblPhoneHelp instead of ddlPhoneHelp.

    ddlPhoneHelp.Enabled = Not ddlHowRec.SelectedValue = "phone"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting expected notices and warnings and would like to turn them off
I would like to turn on/off 3 stars that represent a level of difficulty.
I would like to turn off i18n calls on some forms or even form
I would like to get USB Mass Storage activity to turn on or off
I would like to 'turn off' the compiler for a section of my code.
I would like to turn off the airplane mode if num>50, I implemented this
I would like to turn off certain emails in development and on test/staging servers,
Basically I would like to turn off antialias in the following: public BufferedImage createText(String
I would like to turn off some Visual Studio warnings including: Field can be
I would like to turn off the Required field validation on a certain property

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.