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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:20:04+00:00 2026-06-07T13:20:04+00:00

I am having some problems using UpdatePanels in my C#/ASP.NET application. I shall post

  • 0

I am having some problems using UpdatePanels in my C#/ASP.NET application.
I shall post my code first, and then explain my problem.

<asp:DropDownList ID="ddlSavedAddresses" runat="server" AutoPostBack="true">
<asp:ListItem Selected="True" Value="">Choose from your saved addresses: </asp:ListItem>
</asp:DropDownList>

<asp:UpdatePanel ID="upnlAddress" runat="server">
<Triggers>
    <asp:AsyncPostBackTrigger ControlID="ddlSavedAddresses" EventName="SelectedIndexChanged" />
</Triggers>
 <ContentTemplate>
 <div>
    <div class="minWidth490 topMargin10">
        <fieldset>
        <div>
            <label for="buildingName">Building Name</label>
        </div>
        <div>
            <asp:Textbox runat="server" id="txtBuildingName" CssClass="short" ToolTip="Enter your house name here" />
        </div>
    </div>
  </ContentTemplate>
</asp:UpdatePanel>

The above is my .ascx file file.

this.ddlSavedAddresses.SelectedIndexChanged += new EventHandler(ddlSavedAddresses_SelectedIndexChanged);

void ddlSavedAddresses_SelectedIndexChanged(object sender, EventArgs e)
{
    // in my code, I have a breakpoint in this method, which is being hit
    this.txtBuildingName.Text = "FOO";
}

My actual code has more fields than this (I’m sure you gathered that) however it is simply more of the same.

As stated above, the event is firing, and any breakpoints I set in the ddlSavedAddresses_SelectedIndexChanged are being hit.

I also put a quickwatch on the .Text value of this.txtBuidlingName and it appears to be “FOO” as expected, however, the actual value of the textbox that the web page has rendered remains blank.

This is my issue. No matter what, the value remains blank. If I fire the event multiple times (by changing the DropDownList’s SelectedIndex), it simply fills each field in the with a ‘,’ for every event I fire.

I believe I am being short sighted and this is something miniscule, however, I am at a loss and would greatly appreciate your help.

  • 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-07T13:20:07+00:00Added an answer on June 7, 2026 at 1:20 pm

    Imported from the comments section

    1. Add upnlAddress.Update(); at the end of your SelectedIndexChanged event.
    2. Add UpdateMode="Conditional" to your UpdatePanel definition.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first time using nginx and I'm having some problems configuring an
Having some problems initialising a google map using geocoding. First issue is with any
I am using paypal_adaptive gem and having some problems. This is my code in
I'm trying to POST some JSON data using Adobe Flex but having some problems.
I'm having some problems using cascade operations on hibernate. I have one entity (TripleDBmodel),
I'm having some problems while using PDO. It all seems correct but I am
I am having some problems parsing this piece of XML using SimpleXML. There is
I am having some problems with the PDF files that I make using the
I'm having some problems with users cheating my online game by using macros to
I am using the jQuery UI components but having some problems. If I try

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.