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

  • Home
  • SEARCH
  • 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 8261215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:19:41+00:00 2026-06-08T03:19:41+00:00

I have a DDL within an update panel and I cannot get the SelectedItemChanged

  • 0

I have a DDL within an update panel and I cannot get the SelectedItemChanged method to fire when I bind data to it. In Page_Load I have:

ddl.DataSource = GetList();
ddl.DataBind();

GetList() returns a List<string>

The values are all there but nothing happens when I select one.

If I am to manually put them in like so:

ddl.Items.Add("1");
ddl.Items.Add("2");
ddl.Items.Add("3");

it works, why?

The method below is never entered into if I bind the data.

protected void ddl_SelectedIndexChanged(object sender, EventArgs e)
    {
        string test = ddl.SelectedItem.Text;
    }

<asp:DropDownList runat="server" ID="ddl" Width="150px"
OnSelectedIndexChanged="ddl_SelectedIndexChanged"></asp:DropDownList>
  • 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-08T03:19:42+00:00Added an answer on June 8, 2026 at 3:19 am

    By default the Change asp:DropDownList does not do postback like button as that is not required in many cases. You have to set it to true to get the postback.

    Change

    <asp:DropDownList runat="server" ID="ddl" Width="150px"
    OnSelectedIndexChanged="ddl_SelectedIndexChanged"></asp:DropDownList>
    

    To

    <asp:DropDownList runat="server" ID="ddl" Width="150px" AutoPostBack="true"
    OnSelectedIndexChanged="ddl_SelectedIndexChanged"></asp:DropDownList>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I cannot get my SelectedIndexChanged of my dropdownlist to fire. I have the following:
Say I have an array of table DDL queries and I want to get
I have a ddl in firefox that does not get reset to the default
I have a DDL and Button which when clicked create a dynamic table; all
I'm translating an old database SyBase to MySQL and I have this DDL Query:
I have a script that generates DDL scripts to define materialized views for a
I have parametrized persistence.xml. I am trying to generate ddl schema using hbm2ddl. How
I have a DropDownList called (DDL) in ASP.net page, I want that DDL contains
I have a stored procedure that is performing some ddl dml operations. It retrieves
I have two nested DropDownLists (the value selected in the 1st ddl will limit

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.