How to pass a string inside a query
<p>I have to pass a string value inside a query...Here is my code</p>

<pre><code> string a = ConfigurationManager.AppSettings["var"];
SqlDataAdapter da = new SqlDataAdapter("select codesnippet from edk_custombrsnippet_vw where partnerid = 'a'", con);
DataTable dt = new DataTable();
da.Fill(dt);
</code></pre>

<p>I got the value in string a..but i dont know how to pass that string in that query..Any suggestion?</p>
