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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:33:41+00:00 2026-05-17T17:33:41+00:00

I have a dropdown list which is in updatepanel. I have to fill that

  • 0

I have a dropdown list which is in updatepanel. I have to fill that dropdown on a client event through JavaScript which calls __dopostback of the updatepanel and calls its load event.

Problem is that when I submit the form updatepanel_Load event also execute again and it again reset the DropDownLIst which causes the loss of selectedValue in Dropdown.

<asp:UpdatePanel  ID="UpdatePanel3" runat="server" OnLoad="UpdatePanel3_Load" UpdateMode="Conditional">

   <ContentTemplate>


       <asp:DropDownList ID="ddlItems" runat="server" CssClass="dropdown">                  
       </asp:DropDownList>                 

   </ContentTemplate>
</asp:UpdatePanel>

On page Load this dropdown is Empty …. no function to fill it.

Now the problem is when ever I Fill the Dropdown through Load of UPatepanel, that UPdatepanel Load event also execute when I submit my page. Actually the solution of JavaScript is due to a table and on Selection of the table row item it Fills the DropDownList from __dopostback of my updatepanel.

I have button which opens a popup window and that popup window contains a table, when client select some item from that table and close that popup window then I fill my dropdown (in parent or opener page through Ajax, Updatepanel’s Load) as further selction option. so dropdown databind is dependent on that tables input.

  • 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-17T17:33:42+00:00Added an answer on May 17, 2026 at 5:33 pm

    I have to handle it with javascript. So I save the selected value on DropDownList on onchange event in Hidden field and save from that hidden field because at save event dropdown gets reset and lost the selected item.

    Because I observed that when I clicked save button the callback events which used also called before button click event. So as my case it resets the Dropdown.

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

Sidebar

Related Questions

I have a dropdown list that stores name/value pairs. The dropdown appears in each
I have a dropdown list that is currently populated from a result set of
I have some html that creates a dropdown list. The list has text values
I have a dropdown list on my form which should filter out or display
In my aspx page I have drop down list that initialy in page load
I have a dropdown list which has items bound to it using sql datasource.
I have a dropdown list which retrieves data from a datasource. I must to
I have a dropdown list in which I select how many people are going
I have dropdown list control in one of my application and when I add
So, I have an autocomplete dropdown with a list of townships. Initially I just

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.