SyntaxFix
Write A Post
Hire A Developer
Questions
Use int.TryParse instead to get rid of the try-catch block:
if (!int.TryParse(Request.QueryString["id"], out id)) { // error case }