title: How to solve SqlException: Must declare the scalar variable "@RegNo" in ASP.Net
body: <pre><code> SqlCommand cmd = new SqlCommand("insert into Student(@RegNo,@Name,@Address,@CreatedTime) values(@RegNo,@Name,@Address,Getdate())");
  </code></pre>
  
  <p>here it display an error like SqlException: </p>
  
  <blockquote>
    <p>Must declare the scalar variable "@RegNo".</p>
  </blockquote>
  
  <p>what to do? Thanks</p>