title: Client Side redirect to new page in Sharepoint (2010) usercontrol
body: <p>I want to redirect to new page on a button click in sharepoint usercontrol i have tried the following but its not redirecting .In my UC i have the following code</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
     function Redirect() {
  
          var text = $('#txtTitle').val();
          window.location.href = "../Pages/Search.aspx?t=" + text;
      }
  
   &lt;/script&gt;
  
   &lt;asp:TextBox ID="txtTitle"  runat="server"&gt;&lt;/asp:TextBox&gt;
  &lt;asp:Button ID="btnSearch" Text="Search" runat="server" OnClientClick="Redirect()" /&gt;
  </code></pre>