int 判断

string id = Request.QueryString["id"];
                int x;
                if (!int.TryParse(id, out x))
                {
                    Response.Write("输入有误!");
                    Response.End();
                }

posted @ 2012-02-04 11:44  卢青松  阅读(206)  评论(0编辑  收藏  举报