Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

How do I delay the AsyncPostBackTrigger?

$
0
0

Following is what I have written on the front end of my web page

<div id="Div1" style="float: left;"><asp:UpdatePanel ID="UpdatePanel2" runat="server"><Triggers><asp:AsyncPostBackTrigger ControlID="txtAN" EventName="TextChanged" /></Triggers><ContentTemplate><asp:TextBox ID="TextBox1" runat="server" CssClass="text_font" Height="16" Width="100" MaxLength="500"                                                  OnTextChanged="txtAN_TextChanged" AutoPostBack="true"></asp:TextBox></ContentTemplate></asp:UpdatePanel></div>

A value (Ex : 0003333) is being scanned in to this text box (TextBox1) from a QR code reader. But there is a weird delay when scanning the value from the QR code reader. First the digit0 (zero) (which is the first digit of the given example) appears in the text box but the rest of the values (003333) appear after a few milliseconds. As soon as the first digit appears, my event (txtAN_TextChanged) gets triggered so an incorrect value is given as the input. 

Can someone help me to solve this matter. Thanks in advance.


Viewing all articles
Browse latest Browse all 5678

Trending Articles