using System;
using System.Web;
using System.Web.UI;

public partial class Error : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["err"] != null)
        {
            this.nopage.Visible = false;
            if (Request.QueryString["err"] == "0")           //没有开放注册功能
            {
                this.hidpath.Value = "default.aspx";
                this.liError.InnerHtml = "&nbsp;&nbsp;&nbsp;&nbsp;还没有开发注册功能，请跟管理员联系！";
                this.noopen.Visible = true;
            }
            else if (Request.QueryString["err"] == "1")      //已经登陆，退出后在申请会员
            {
                this.hidpath.Value = "Member/index.aspx";
                this.liError.InnerHtml = "&nbsp;&nbsp;&nbsp;&nbsp;您已经登陆，请退出登陆在进行注册！";
                this.noopen.Visible = true;
            }
            else if (Request.QueryString["err"] == "2")      //该IP段不允许注册
            {
                this.hidpath.Value = "default.aspx";
                this.liError.InnerHtml = "&nbsp;&nbsp;&nbsp;&nbsp;您的IP段现在不允许注册，请有管理员联系！";
                this.noopen.Visible = true;
            }
            else if (Request.QueryString["err"] == "3")      //还没有通过审核
            {
                this.hidpath.Value = "default.aspx";
                this.liError.InnerHtml = "&nbsp;&nbsp;&nbsp;&nbsp;您没有通过审核，请与管理员联系！";
                this.noopen.Visible = true;
            }
            else if (Request.QueryString["err"] == "4")      //还没有通过审核
            {
                this.hidpath.Value = "default.aspx";
                this.liError.InnerHtml = "&nbsp;&nbsp;&nbsp;&nbsp;您的服务期限已过期，请与管理员联系！";
                this.noopen.Visible = true;
            }
            else if (Request.QueryString["err"] == "5")      //还没有通过审核
            {
                this.hidpath.Value = "default.aspx";
                this.liError.InnerHtml = "&nbsp;&nbsp;&nbsp;&nbsp;您请求的页面不存在！";
                this.noopen.Visible = true;
            }
        }
    }
}
