I am working on .cshtm pages and on the server side coding I am facing the exception
cannot implicitly convert type int to string. Code is below
@{
    var id = Request.QueryString["Id"]; //page.cshtml?id=5
    var data="";
    var query = "Select * from products where id="+id;
    data = db.Execute(query).toString();
}
string' does not contain a definition for 'Name' and no extension method 'Name' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Now I am facing this exception.
 
     
     
     
     
     
     
    