I'm assuming that you've given query string values like following,
string code = Request.QueryString["barcode"];
string distt = Requset.QueryString["distt"];
string query = "select * from SomeTable where barcode= '" + code +", distt = '" + distt "'";
-KR