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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:46:58+00:00 2026-05-24T03:46:58+00:00

I have the following DropDownList defined: <asp:DropDownList ID=ddlStuff CssClass=myCssClass OnSelectedIndexChanged=PopulateAnotherDropdown runat=server></asp:DropDownList> However, my PopulateAnotherDropdown

  • 0

I have the following DropDownList defined:

<asp:DropDownList ID="ddlStuff" CssClass="myCssClass" OnSelectedIndexChanged="PopulateAnotherDropdown" runat="server"></asp:DropDownList>

However, my PopulateAnotherDropdown method isn’t firing. I have a breakpoint set on the method, and it’s not being hit.

Here is my method write-up in code-behind:

public void PopulateAnotherDropdown(object sender, EventArgs e)
{
    ...
}

For what it’s worth, the page is rendering as follows:

<select name="ctl00$MainContent$ddlStuff" id="MainContent_ddlStuff" class="myCssClass">

Any ideas?

  • 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-24T03:46:59+00:00Added an answer on May 24, 2026 at 3:46 am

    Because you forget to add: AutoPostBack="true"

    To fire the SelectedIndex of the dropdownlist control, it needs to postback to the server. For that to happen you to have to set AutoPostBack="true" in the control property.

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

Sidebar

Related Questions

I have the following markup: <asp:DropDownList ID=dd1 AutoPostBack=true runat=server> <asp:ListItem Value=1>1</asp:ListItem> <asp:ListItem Value=2>2</asp:ListItem> </asp:DropDownList>
I have following dropdwonlists in a UserControl; <span class=src-engine-row-title-span>ADT : </span> <asp:DropDownList runat=server ID=ddlAdultTrf></asp:DropDownList>
I have following code inside my ListView template. <asp:DropDownList runat=server ID=myDropDown Width=60px SelectedValue='<%# Eval(SelectedValue)
I have the following datagrid: <asp:DataGrid runat=server ID=gastosReembolsables ShowFooter=True AutoGenerateColumns=False> <AlternatingItemStyle CssClass=DATAitem2></AlternatingItemStyle> <ItemStyle CssClass=DATAitem1></ItemStyle>
I have the following multiview set up in my aspx page: <asp:MultiView id=MultiView1 runat=server
I have the following very simple form: <asp:UpdatePanel ID=ClaimRewardsForm runat=server> <ContentTemplate> <span class=largeBold>Select jacket
I have the following repeater code: <asp:Repeater ID=repMain runat=server OnItemCommand=repMain_ItemCommand EnableViewState=false> <ItemTemplate> <dmg:testcontrol runat=server
i have the following code in an asp.net mvc view. <% = Html.DropDownList(Filter, new
I have the following JavaScript to disable a dropdownlist in a ASP.NET page, which
I have the following method which I use to fill a DropDownList-Control. protected void

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.