how can i use request.querystring in asp.net. I am trying to retrieve data using Linq but I keep getting errors. Please get back to me Asap. Im still a novice in asp.net Code behind:
BlogDBDataContext db = new BlogDBDataContext();
dynamic q = from b in db.Blogs
where b.BlogId = Request.QueryString("BlogId")
select b;
lv.DataSource = q;
lv.DataBind();
this give me the error that says : Non-invocable member 'System.Web.HttpRequest.QueryString' cannot be used like a method.
Code behind: even when I try this code : Request.QueryString["BlogId"]
still it gives me an error : Cannot implicitly convert type 'string' to 'int'