I\'m curious what everyone does for handling/abstracting the QueryString in ASP.NET. In some of our web apps I see a lot of this all over the site:
int val = 0;
According to me, The best way to get querystring value is like following: If the querystring is not found then the value of val will be 0.
val
0
int val = 0; int.TryParse(Request.QueryString["someKey"], out val);