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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:43:58+00:00 2026-05-12T23:43:58+00:00

<asp:DropDownList ID=ddloption runat=server Visible=false> <asp:ListItem Text=Active Value=Active></asp:ListItem> <asp:ListItem Text=D-Active Value=D-Active></asp:ListItem> </asp:DropDownList> function boxchange(dd) {

  • 0
<asp:DropDownList ID="ddloption" runat="server" Visible="false">
  <asp:ListItem Text="Active" Value="Active"></asp:ListItem>
  <asp:ListItem Text="D-Active" Value="D-Active"></asp:ListItem>
</asp:DropDownList>

function boxchange(dd)
{
  document.getElementById("<%= ddloption.ClientID%>").visibility = "visible";
}

ddloption is null, what i m getting…can you tell me how to work with this.

  • 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-12T23:43:58+00:00Added an answer on May 12, 2026 at 11:43 pm

    When you have a runat="server" visible="false" asp control, it is not rendered in the html. Try something like this:

    <div id="wrapper" style="display: none;">
        <asp:DropDownList ID="ddloption" runat="server">
            <asp:ListItem Text="Active" Value="Active"></asp:ListItem>
            <asp:ListItem Text="D-Active" Value="D-Active"></asp:ListItem>
        </asp:DropDownList>
    </div>
    
    
    function boxchange(dd)
        {
              document.getElementById("wrapper").style.display = "block";
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is my drpdownlist <asp:DropDownList ID=DriverGender runat=server> <asp:ListItem Text=M Value=M></asp:ListItem> <asp:ListItem Text=F Value=F></asp:ListItem> </asp:DropDownList>
I have a dropdownlist with following options: <asp:DropDownList ID=ddlTaxStatus runat=server OnPreRender=ddlContainerStatus_PreRender> <asp:ListItem Text=--Select-- Value=-1></asp:ListItem>
<asp:DropDownList ID=ddl1 runat=server> <asp:ListItem Text=First Value=1></asp:ListItem> <asp:ListItem Text=Second Value=2></asp:ListItem> </asp:DropDownList> <asp:TextBox ID=tb1 runat=server/> <asp:Button
I have the dropdownlist like this one : <asp:dropdownlist ID =ddlgender runat=server> <asp:ListItem Text=--Please
I have the following date dropdownlist options: <asp:DropDownList id=eventsDate runat=server> <asp:ListItem Value=04/31/2012>Apr 31, 2012</asp:ListItem>
I can do DropDownList <asp:DropDownList ID=YearList runat=server oninit=YearList_Init1 /> but I can't edit text
<asp:DropDownList runat=server ID=myListDropDown CssClass=text OnSelectedIndexChanged=myListDropDown_Change /> There's the aspx above protected void myListDropDown_Change(object sender,
I have a DropDownList in my aspx file like this: <asp:DropDownList runat=server ID=MaxRec> <asp:ListItem>10</asp:ListItem>
I have an ASP.NET dropdownlist like this: <asp:DropDownList ID=ddlMyDropDown runat=server> <asp:ListItem>Please pick one</asp:ListItem> <asp:ListItem>option1</asp:ListItem>
I've got the following DropDownList control: <asp:DropDownList ID=SubjectFilter runat=server AutoPostBack=True onselectedindexchanged=SubjectFilter_SelectedIndexChanged></asp:DropDownList> SubjectFilter data: BookStore

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.