title: Using vb.net variables on html
body: <p>I am trying to use VB variable names to insert a name into an SQL Server Database from a grid view. It is inserting a row, but the value in the database is the variable name not the value held by the variable.</p>
  
  <p>I have defined names as</p>
  
  <pre><code>dim names as string="Mike"
  </code></pre>
  
  <p>and this is how am calling it on the gridview</p>
  
  <pre><code>&lt;asp:Parameter Name="name" Type="String" Defaultvalue = ' &lt;%=names %&gt; ' /&gt;
  </code></pre>
  
  <p>and the SQL query is as follows</p>
  
  <pre><code>UPDATE [Loans] SET [admin]=@name WHERE [Loanid] = @Loanid"&gt;
  </code></pre>
  
  <p>The problem is with inserting the data in the db here
   ' />
  It is inserting </p>