public int? QueryIntValue(string key)
{
int? result = null;
if (!string.IsNullOrEmpty(this.Handler.QueryString[key]))
{
try
{
result = Convert.ToInt32(this.Handler.QueryString[key], CultureInfo.InvariantCulture);
}
catch (FormatException)
{
}
catch (OverflowException)
{
}
}
return result;
}