title: Using javascript to calculate price in asp.net
body: <p>I'm using textbox in gridview and want to calculate values through js in textbox my code is not showing any error. I want to multiply quantity with rate and get total price.  </p>
  
  <pre><code>function totalise(price, rate, qt) {
      var qty = window.document.getElementById(qt).value;
      var rate = window.document.getElementById(rate).value;
      var price = rate;
      price.value = rate * qty;
  }
  
  &lt;asp:TextBox ID="txtStonePrice" runat="server" onblur=" totalise(this)" &gt;&lt;/asp:TextBox&gt;
  </code></pre>