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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:38:26+00:00 2026-05-10T20:38:26+00:00

This question is directly related to my previous question ASP.NET AJAX Is it possible

  • 0

This question is directly related to my previous question ASP.NET AJAX

Is it possible to perform the post back asynchronously? I have multiple CustomTextbox controls on the page, when i post back i want to update another control on the form.

If i place all the controls in an updater panel after the first post back to a process that takes a couple of seconds to complete, any changes i have made to other contols rendered with their original values.

Any idea how to fix this?

Type.registerNamespace('Demo');  Demo.CustomTextBox = function(element) {     Demo.CustomTextBox.initializeBase(this, [element]); }  Demo.CustomTextBox.prototype = {      initialize: function() {         Demo.CustomTextBox.callBaseMethod(this, 'initialize');          this._onblurHandler = Function.createDelegate(this, this._onBlur);          $addHandlers(this.get_element(),                      {                          'blur': this._onBlur                      },                      this);     },      dispose: function() {         $clearHandlers(this.get_element());          Demo.CustomTextBox.callBaseMethod(this, 'dispose');     },      _onBlur: function(e) {     if (this.get_element() && !this.get_element().disabled) {             /* Cridit to AdamB for this line of code */             __doPostBack(this.get_element().id, 0);         }     } }  Demo.CustomTextBox.registerClass('Demo.CustomTextBox', Sys.UI.Control);  if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded(); 
  • 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. 2026-05-10T20:38:27+00:00Added an answer on May 10, 2026 at 8:38 pm

    Only put the update panel around the control that needs to be updated, and make the controls that trigger the changes triggers on that update panel:

    <asp:TextBox runat='server' ID='Entry2' /> <asp:TextBox runat='server' ID='Entry1' /> <asp:UpdatePanel>     <ContentTemplate>         <asp:TextBox runat='server' ID='Result' ReadOnly='true' />     </ContentTemplate>     <Triggers>         <asp:AsyncPostBackTrigger ControlID='Entry1' />         <asp:AsyncPostBackTrigger ControlID='Entry2' />     </Triggers> </asp:UpdatePanel> 

    As a result, when the postback finishes, only the stuff inside the update panel changes. AJAX posts back the values of all the controls on the page, not just the ones in the content template.

    Option 2 (and more involved) would be to write a web service that does the calculation and some javascript to call it.

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

Sidebar

Related Questions

This question is directly related to StackOverFlow while counting digits . I have lifted
(This question is loosely related to my previous question ) Hello there. I have
This question is directly related to this SO question I posed about 15 minutes
First of all: This question is not directly programming related. However, the problem only
This question may not directly relate to programming. I have noticed that the technology
This very well my be a SuperUser.com question, however it's directly related to my
Disclaimer: this question is directly related to my programming homework. My C++ assignment consists
This may sound as a non related coding question but it's directly related :
This question is related to this project . I have to send device information
This is directly related to this question I finally figured out that Rails 3.0.6

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.