title: <script> $('#timepicker1').timepicki(); </script> in body tag not working after button click which is placed inside updatepanel
body: <p>Initially after the page load when i click in the timer control text box, time pop up appears, but Timer control is not working after clicking the save button which is inside the updatepanel. Pls help..</p>
  
  <p>In aspx page:</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="timePicker.aspx.cs" Inherits="timePicker" %&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;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;meta name="description" content="Timepicki is a light weight jQuery Time Picker plugin for using in form submission websites."&gt;
      &lt;meta name="keywords" content="timepicki, timepicker, time, jquery, plugins"&gt;
  
      &lt;title&gt;Workings&lt;/title&gt;
  
      &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;&lt;/script&gt;
  
      &lt;!-- Bootstrap core CSS --&gt;
      &lt;link href="css/timepicker/bootstrap.css" rel="stylesheet"&gt;
      &lt;!-- Custom styles for this template --&gt;
      &lt;link href="css/timepicker/style.css" rel="stylesheet"&gt;
      &lt;link href="css/timepicker/timepicki.css" rel="stylesheet"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
          &lt;asp:ScriptManager ID="script1" runat="server"&gt;
          &lt;/asp:ScriptManager&gt;
          &lt;asp:UpdatePanel ID="upd" runat="server"&gt;
              &lt;ContentTemplate&gt;
                  &lt;table border="1"&gt;
                      &lt;tr&gt;
                          &lt;td colspan="2"&gt;
                              &lt;input id="timepicker1" type="text" style="width: 80px" runat="server" name="timepicker1" /&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              &lt;label&gt;
                                  Enter Text&lt;/label&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;asp:TextBox ID="txtText" runat="server" TextMode="MultiLine"&gt;
                              &lt;/asp:TextBox&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td colspan="2"&gt;
                              &lt;asp:Button ID="btnSave" CssClass="btn-success" runat="server" Text="Save" OnClick="btnSave_Click" /&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
              &lt;/ContentTemplate&gt;
          &lt;/asp:UpdatePanel&gt;
      &lt;/div&gt;
      &lt;!-- For Timepicker --&gt;
      &lt;!-- Bootstrap core JavaScript
      ================================================== --&gt;
      &lt;!-- Placed at the end of the document so the pages load faster --&gt;
  
      &lt;script src="js/timepicker/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/timepicker/timepicki.js"&gt;&lt;/script&gt;
  
      &lt;script&gt;
          $('#timepicker1').timepicki();
      &lt;/script&gt;
  
      &lt;script src="js/timepicker/bootstrap.min.js"&gt;&lt;/script&gt;
  
      &lt;!-- End For Timepicker --&gt;    
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In code behind: For inserting the values in table</p>
  
  <pre><code>    protected void btnSave_Click(object sender, EventArgs e)
      {
  
              string strID = "";
  
              if (txtText.Text.Trim() == "")
              {
                  ScriptManager.RegisterStartupScript(this, GetType(), "Msg", "&lt;script language='javascript'&gt;alert('Remarks cannot be empty!')&lt;/script&gt;", false);
                  return;
              }
  
              strID = objD.GetSequence("T_TEST", "TEST", "TID");
  
              objD.sQry = "";
              objD.sQry += "INSERT INTO T_TEST(TID,TDESC,CRE_DATE,CRE_USER,STATUS) VALUES('" + strID + "','" + txtText.Text.Trim().Replace("'", "''").ToString() + "',SYSDATE,'TEST USER','L')";
              int iAdd = objD.InsertSQL();
  
              //btnSendAuth.Enabled = true;
              Response.Redirect("Default.aspx?qVal=" + strID);
          }
  
      }
  </code></pre>