Using LINQ, you can use variables for evaluation of the query. For example, the following query works just fine. It would also work if you used something like textBox1.Text instead of the variable s.
string s = "Beverages";
var results = from c in db.Categories
where c.CategoryName == s
select c.CategoryName;