摘要: 在页面加载事件中写入 if(!IsPostBack){ string caid=Request.QueryString["caid"] //获取页面传过来的值 int x; //定义一个整形变量 if(string.IsNullOrEmpty(caid) || !int.TryPars(caid,out x))//// 如果 字符串为null并且为空 或者字符串不是整形数据 就跳转到首页 { Re... 阅读全文
posted @ 2010-06-09 20:56 你妹的sb 阅读(486) 评论(0) 推荐(0) 编辑
百度一下