Atlas Postback Problems

Discussion in 'ASP .Net' started by =?Utf-8?B?SmFzb24=?=, Nov 6, 2006.

  1. I have a webpage that I've wrapped in an Atlas UpdatePanel. This page
    contains four textboxes, each with AutoPostBack set to true. The problem
    comes when someone edits the first box and tabs to the second box. They have
    enough time to make a quick edit to the second box before the postback
    completes and then the value in the second textbox is reset to the original
    value. Is there anything I can do about this? It's really causing problems
    with incorrect data being entered.
    =?Utf-8?B?SmFzb24=?=, Nov 6, 2006
    1. Advertisements

  2. Hi Jason,

    As for the ASP.NET AJAX update panel TextBox autopostback issue, I've
    performed some test on my local environment. It seems this is a environment
    specific problem. When you use AJAX updatepanel to do partial update in
    page, the postback in panel is actually marshed through xml request sent by
    the ajax background components(use xmlhttp...), therefore, if the postback
    data is large, whether the postback event code logic is long-run or the
    network condition is not quite good, it may takes sometime for the partial
    postback to finish and you'll encounter a delay. In my local test, when the
    panel partial postback, it refresh the panel immediately so that I haven't
    a chance to input any other data in other textboxes. BTW, have you checked
    the client-side rendered html source to see whether the postback script is
    set to execute immdediately as below:

    <input name="txt3" type="text"
    onchange="javascript:setTimeout('__doPostBack(\'txt3\',\'\')', 0)"
    ............. id="txt3" />

    If the rendered source doesn't get wrong, the problem is due to the ajax
    postback which rely on the network condition and the server processing
    time. If possible you can use clientScript to display a message in a label
    indicate that the data is submit for processing. Or you can even make the
    other textbox readonly when one of them is postback, e.g.

    txt1.Attributes["onchange"] = "document.getElementById('txt2').readOnly =


    Steven Cheng

    Microsoft MSDN Online Support Lead


    Get notification to my posts through email? Please refer to

    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Steven Cheng[MSFT], Nov 7, 2006
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ronde

    Atlas, JavaScript and PostBack

    Ronde, May 2, 2006, in forum: ASP .Net
    May 3, 2006

    Atlas Problems with Multiple ControlEventTrigger's, Jun 16, 2006, in forum: ASP .Net
    Jun 16, 2006
  3. jdp

    Force 'Full' PostBack in Atlas

    jdp, Jun 19, 2006, in forum: ASP .Net
  4. =?Utf-8?B?bmlnZWFtYW4=?=

    Atlas: Validator Controls don't cancel postback

    =?Utf-8?B?bmlnZWFtYW4=?=, Jul 10, 2006, in forum: ASP .Net
    Steven Cheng[MSFT]
    Jul 11, 2006
  5. Patrick Ruzand

    [Atlas Beta1] how to manually trigger an async postback

    Patrick Ruzand, Oct 27, 2006, in forum: ASP .Net Building Controls
    Patrick Ruzand
    Nov 13, 2006

Share This Page