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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:22:57+00:00 2026-05-20T06:22:57+00:00

<asp:UpdatePanel ID=uppBaixa runat=server> <ContentTemplate> <asp:TextBox ID=txt1 runat=server AutoPostBack=true OnTextChanged=txt1_TextChanged></asp:TextBox> <asp:TextBox ID=txt2 runat=server></asp:TextBox> <asp:Button ID=btnSave

  • 0
<asp:UpdatePanel ID="uppBaixa" runat="server">
    <ContentTemplate>
            <asp:TextBox ID="txt1" runat="server" AutoPostBack="true" OnTextChanged="txt1_TextChanged"></asp:TextBox>
            <asp:TextBox ID="txt2" runat="server"></asp:TextBox>
            <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" />
    </ContentTemplate>
</asp:UpdatePanel>

This is basically what the ASPX looks like. When I leave (tab) txt1 the TextChanged event is called and it normally fills txt2. But when I change the text in txt2and hit btnSaveto update this data, the txt1_TextChanged is called AGAIN (before the actual btnSave_Click method triggers)

  • 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-20T06:22:58+00:00Added an answer on May 20, 2026 at 6:22 am

    If you

    • Take your sample UpdatePanel and put it into a new project (and add the ScriptManager)
    • Add the following methods

      protected void btnSave_Click(object sender, EventArgs e)
      {
          this.txt1.Text = "foo";
      
      }
      protected void txt1_TextChanged(object sender, EventArgs e)
      {
          txt2.Text = txt1.Text;
      }
      
    • Update txt1 to ABC then txt2 will become ABC

    • Update txt2 to Bar then txt1.Text will be ABC and txt2 will Bar
    • Pressing Save will just change txt1 to Foo and txt will remain Bar

    This means that what you’ve described doesn’t reproduce.

    Note that even when you set txt1.text = "foo" on server side it doesn’t raise the textChanged event, which means its probably something on the client side

    Try adding this to your Page_Load event to find it.

      this.btnSave.Attributes.Add("OnClick", "debugger");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<ajaxtoolkit:AccordionPane ID=accordianPaneAroundTheCheckbox runat=server> <Content> <asp:UpdatePanel ID=updatePanelAroundTheCheckbox runat=server > <ContentTemplate> <div> <asp:CheckBox ID=chkFoo AutoPostBack=true runat=server
<asp:UpdatePanel ID=UpdatePanel1 runat=server UpdateMode=Conditional> <ContentTemplate> <asp:TextBox ID=TextBox1 runat=server></asp:TextBox> <asp:Button ID=Button1 runat=server onclick=Button1_Click Text=Send />
I have a asp:UpdatePanel with a asp:Button and a asp:TextBox : <asp:UpdatePanel ID=UpdatePanel1 runat=server>
<asp:UpdatePanel ID=UpdatePanel1 UpdateMode=Conditional ChildrenAsTriggers=true runat=server> <ContentTemplate> <asp:ImageButton ID=imagebutton1 runat=server ImageUrl=~/image.jpg Width=125 Height=125 onclick=imagebutton1_Click />
In my aspx file, I have: <asp:UpdatePanel ID=UpdatePanel3 UpdateMode=Always runat=server> <ContentTemplate> <asp:Button ID=Button1 runat=server
<asp:UpdatePanel ID=uppnl_Select_File_Format runat=server UpdateMode=Conditional> <ContentTemplate> <div class=button-bg-2> <div class=button-text-2> <asp:LinkButton ID=btnCreate ValidationGroup=CreateVersion runat=server OnClick=btn_Create_OnClick
This is my situation: Page: <asp:UpdatePanel ID=updatePanel1 runat=server ChildrenAsTriggers=true> <ContentTemplate> ... <uc:ChildControl ID=ucChild runat=server
<asp:UpdatePanel runat=server ID=userRemovalUpdatePanel> <ContentTemplate> <p><label>Remove: </label> <asp:DropDownList runat=server ID=removeUserList /></p> <br /> <asp:Button runat=server
<asp:UpdatePanel ID=UpdatePanel1 runat=server UpdateMode=Conditional> <ContentTemplate> <div> <asp:DropDownList runat=server EnableViewState=true DataTextField=Name DataValueField=Id DataSourceID=ListSource ID=List OnDataBound=List_OnDataBound
I develop custom file uploader. <asp:FileUpload runat=server ID=fuUpload /> <asp:UpdatePanel runat=server > <ContentTemplate> <asp:Button

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.