title: How to bind server value in javascript onmousedown in aspx page
body: <p>I have one Hyperlink in aspx page. I need to do two things</p>
  
  <ol>
  <li>When I Navigate from mousedown I need to log some activity</li>
  <li>While logging EmployeeID value I need to bind from server.</li>
  </ol>
  
  <p>But i am facing error like server tags not properly formed.</p>
  
  <p>Below is my code:</p>
  
  <pre><code>   &lt;asp:HyperLink id="hyperlink1" 
                NavigateUrl="#"
                Text="EMPLOYEE ID"
   onmousedown="javascript:record('User clicked Eployee ID=') +&lt;%#fasteval("EmpID")%&gt;     
                runat="server"/&gt;     
  </code></pre>
  
  <p>Note: record is my function which will log into database one thing i want to bind the <code>EmpID</code> value from my own column <code>EmpID</code>.</p>
  
  <p>Can you please help me on this</p>