title: asp.net ajax issue
body: <p>i'm having a form with a textbox and a button</p>
  
  <p>the textbox has an onblur event to it which is set using jquery after page load.</p>
  
  <p>the button has a click event that sets some text in the textbox. The issue is, whenever the event occurs, the onblur events goes away. How to resolve this issue. </p>
  
  <p>This is just an example. I have several controls on the page that is set some value using jquery. All the values are lost after his dropdown ajax event.</p>
  
  <p>this is a sample code that shows the issue</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;script src="/Scripts/jquery-1.4.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
      &lt;script language="javascript"&gt;
  
          var ctrl_name = "#&lt;%=name.ClientID %&gt;";
  
          $(function () {
              $(ctrl_name).blur(
                  function () {
                      alert("this texbox has lost its focus");
                  }
  
              );
          });
  
      &lt;/script&gt;
  
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
  
  
  
          &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
          &lt;/asp:ScriptManager&gt;
          &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
          &lt;ContentTemplate&gt;
              &lt;asp:TextBox ID="name" runat="server"&gt;&lt;/asp:TextBox&gt;
              &lt;asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /&gt;
          &lt;/ContentTemplate&gt;
          &lt;/asp:UpdatePanel&gt;
  
      &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Codebehind Code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  namespace WebApplication1
  {
      public partial class _Default : System.Web.UI.Page
      {
          protected void Page_Load(object sender, EventArgs e)
          {
  
          }
  
          protected void Button1_Click(object sender, EventArgs e)
          {
              name.Text = "testing Ajax";
          }
      }
  }
  </code></pre>