示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            base.Login(base.Request.RawUrl);
            base.CheckPrivilege(base.Request.RawUrl);
            AdminMaster m_master = (AdminMaster)base.Master;

            m_master.PageName = "版主管理";
            m_master.SetCate(AdminMaster.CateType.Customer3);

            drpQACate.DataSource     = QA_CategoryBll.GetInstance().GetAllCates();
            drpQACate.DataTextField  = "Name";
            drpQACate.DataValueField = "SysNo";
            drpQACate.DataBind();
            drpQACate.Items.Insert(0, new ListItem("选择问答分类", "0"));

            if (!base.IsPostBack)
            {
                if ((base.Request.QueryString["delete"] != null) && (base.Request.QueryString["delete"] != ""))
                {
                    this.Delete();
                }
                if ((base.Request.QueryString["name"] != null) && (base.Request.QueryString["name"] != ""))
                {
                    this.txtName.Text = base.Request.QueryString["name"];
                    this.urlnow       = this.urlnow + "&name=" + base.Request.QueryString["name"];
                }
                if ((base.Request.QueryString["cate"] != null) && (base.Request.QueryString["cate"] != ""))
                {
                    this.drpQACate.SelectedIndex = this.drpQACate.Items.IndexOf(this.drpQACate.Items.FindByValue(base.Request.QueryString["cate"]));
                    this.urlnow = this.urlnow + "&cate=" + base.Request.QueryString["cate"];
                }
                this.BindContent();
            }
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            base.Login(base.Request.RawUrl);
            base.CheckPrivilege(base.Request.RawUrl);
            AdminMaster m_master = (AdminMaster)base.Master;

            m_master.PageName = "会员管理";
            m_master.SetCate(AdminMaster.CateType.Customer1);
            if (!base.IsPostBack)
            {
                if ((base.Request.QueryString["delete"] != null) && (base.Request.QueryString["delete"] != ""))
                {
                    this.Delete();
                }
                if ((base.Request.QueryString["top"] != null) && (base.Request.QueryString["top"] != ""))
                {
                    this.SetTop(true);
                }
                if ((base.Request.QueryString["notop"] != null) && (base.Request.QueryString["top"] != ""))
                {
                    this.SetTop(false);
                }
                if ((base.Request.QueryString["pn"] != null) && (base.Request.QueryString["pn"] != ""))
                {
                    try
                    {
                        this.pageindex = int.Parse(base.Request.QueryString["pn"]);
                    }
                    catch
                    {
                    }
                }
                this.urlnow = this.urlnow + "?pn=" + this.pageindex;
                if ((base.Request.QueryString["name"] != null) && (base.Request.QueryString["name"] != ""))
                {
                    this.txtName.Text = base.Request.QueryString["name"];
                    this.urlnow       = this.urlnow + "&name=" + base.Request.QueryString["name"];
                }
                if ((base.Request.QueryString["status"] != null) && (base.Request.QueryString["status"] != ""))
                {
                    this.drpStatus.SelectedIndex = this.drpStatus.Items.IndexOf(this.drpStatus.Items.FindByValue(base.Request.QueryString["status"]));
                    this.urlnow = this.urlnow + "&status=" + base.Request.QueryString["status"];
                }
                if ((base.Request.QueryString["begin"] != null) && (base.Request.QueryString["begin"] != ""))
                {
                    this.txtTimeBegin.Text = base.Request.QueryString["begin"];
                    this.urlnow            = this.urlnow + "&begin=" + base.Request.QueryString["begin"];
                }
                if ((base.Request.QueryString["end"] != null) && (base.Request.QueryString["end"] != ""))
                {
                    this.txtTimeEnd.Text = base.Request.QueryString["end"];
                    this.urlnow          = this.urlnow + "&end=" + base.Request.QueryString["end"];
                }
                this.BindContent();
            }
        }