title: How to make JQuery masked-input plugin working after AsyncPostback in asp.net Ajax Update pannel?
body: <p>I have a simple <code>.aspx</code> page and a textbox which I want to maske It using <code>jquery.maskedinput-1.3.js</code> and my page .aspx code is as follows , the issue is on first page load I the textbox is masked , but after an asyncPostback the masked input plugin is not working !  how can I make the masked input plugin working ? thx in advance .</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_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.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="Scripts/jquery.maskedinput-1.3.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script type='text/javascript'&gt;
          jQuery(function ($) {
              $("#txtMembershipCode").mask("999-9999-999-9999");
          });
  
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
      &lt;/asp:ScriptManager&gt; 
      &lt;div style="float: right" id="exDiv"&gt;
                  &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
                      &lt;ContentTemplate&gt;
                          &lt;div style="float: right; width: 120px; font-family: Tahoma"&gt;
                              membership Code :&lt;/div&gt;
                          &lt;div style="float: left"&gt;
                              &lt;asp:TextBox ID="txtMembershipCode" runat="server" CssClass="input" ClientIDMode="Static"
                                  dir="ltr"&gt;&lt;/asp:TextBox&gt;
                          &lt;/div&gt;
                          &lt;div style="font-family: Tahoma; float: left"&gt;
                              &lt;asp:Button ID="btn" runat="server" Text="save" OnClick="btn_Click" CssClass="mybtn" /&gt;&lt;/div&gt;
                          &lt;div style="font-family: Tahoma; float: right"&gt;
                              &lt;asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"&gt;
                                  &lt;ProgressTemplate&gt;
                                      &lt;img src="Images/484.gif" /&gt;
                                  &lt;/ProgressTemplate&gt;
                              &lt;/asp:UpdateProgress&gt;
                          &lt;/div&gt;
                      &lt;/ContentTemplate&gt;
                  &lt;/asp:UpdatePanel&gt;
      &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have tried many different ways on the web but none of them are working !</p>