Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. TextChanged Event of a textbox does not do an ajax postBack [modified]

TextChanged Event of a textbox does not do an ajax postBack [modified]

Scheduled Pinned Locked Moved ASP.NET
sysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sudhanshu Mani Tripathi
    wrote on last edited by
    #1

    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

    V 1 Reply Last reply
    0
    • S Sudhanshu Mani Tripathi

      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

      V Offline
      V Offline
      Vimalsoft Pty Ltd
      wrote on last edited by
      #2

      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/

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups