tring query = "Select * from Products where ProductID= '" + Request.QueryString["ID"].ToString() +"' AND UnitCost < 5000";
query "Select * from Products where ProductID= ',63,64,65' AND UnitCost < 5000" string
tring querydr = "select * from Products"; SqlDataReader dr = obj.fillcomb(querydr); while (dr.Read()) { if(proid == String.Empty) { proid = dr["ProductID"].ToString(); } else { proid += "," + dr["ProductID"].ToString(); } } Response.Redirect("ProductCatalog.aspx?ID="+proid);
...where ProductID= ',63,64,65'...
...where ProductID IN (63,64,65)...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)