title: How to pass textbox value to JavaScript?
body: <p>How to pass two textbox values to a javascript function on a button click event.I have tried it like this but it is not working.here is my code</p>
  
  <pre><code>&lt;asp:LinkButton ID="lnkBTNSubmit" runat="server" CssClass="buttonlink"
    OnClientClick="checkDateRange(GetTextBoxValue('&lt;%= txtATrendStartDate.ClientID %&gt;'.value),GetTextBoxValue('&lt;%= txtATrendEndDate.ClientID %&gt;'.value))"&gt;Submit&lt;/asp:LinkButton&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>function checkDateRange(start, end)
  {
  }
  </code></pre>
  
  <p>Any Suggestion?</p>