Atlas Postback Problems

G

Guest

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.
 
S

Steven Cheng[MSFT]

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 =
true;";
===========


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



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
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top