HttpContext.Current.RewritePath方法重写URL_其他HttpContext.Current.RewritePath方法重写URL_其他_02代码
  if (!IsPostBack)
            {
                
//如果请求ID为空,则重写URL为:~/WebForm3.aspx?ID=zzx1250zh
                if (Request.QueryString["ID"]==null || Request.QueryString["ID"].Trim()=="")
                {
                    HttpContext.Current.RewritePath(
"~/WebForm3.aspx?ID=zzx1250zh");
                }

                Response.Write(Request.QueryString[
"ID"]);
            }