TextChanged Event of a textbox does not do an ajax postBack [modified]
-
I have a textbox inside an AJAX updatepanel. The textbox has autopostback set to true and the textchanged event declared. When I come into the page, I pre-load the textbox with a value. If I change the value and either tab or click away, the event is fired, however, the textbox.text value has my OLD value not the new value I have just entered. My Code is like this <asp:UpdatePanel Id="Upd1" runat="server"> <ContentTemplate> <table> <tr> <td> <asp:TextBox ID="txtUser" runat="server" AutoPostBack="true" OnTextChanged="txtUser_TextChanged"> </asp:TextBox> </td> <td> <asp:TextBox ID="txtPwd" runat="server"> </asp:TextBox> </td> </tr> </ContentTemplate> </UpdatePanel>
modified on Thursday, October 8, 2009 11:48 AM
-
I have a textbox inside an AJAX updatepanel. The textbox has autopostback set to true and the textchanged event declared. When I come into the page, I pre-load the textbox with a value. If I change the value and either tab or click away, the event is fired, however, the textbox.text value has my OLD value not the new value I have just entered. My Code is like this <asp:UpdatePanel Id="Upd1" runat="server"> <ContentTemplate> <table> <tr> <td> <asp:TextBox ID="txtUser" runat="server" AutoPostBack="true" OnTextChanged="txtUser_TextChanged"> </asp:TextBox> </td> <td> <asp:TextBox ID="txtPwd" runat="server"> </asp:TextBox> </td> </tr> </ContentTemplate> </UpdatePanel>
modified on Thursday, October 8, 2009 11:48 AM
Good Day Put a Break point in your text-changed event and Debug it. please Post your code in the text-changed event and maybe we can help you there.
Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/