title: How to pass integer variable in sql query
body: <pre><code>int no = FormView1.PageIndex;
  </code></pre>
  
  <p>Query:-</p>
  
  <pre><code>  SqlCommand cmd =  new SqlCommand("select Answer from Questions where QuestionNo = @no", cn);
  </code></pre>