⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 memberorderlinessguide.aspx.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Admin.Shop
{
    using PowerEasy.Web.UI;
    using System;
    using System.Collections.Generic;
    using System.Web.UI.WebControls;

    public class MemberOrderlinessGuide : AdminPage
    {
        protected DropDownList DropMonth;
        protected DropDownList DropYear;
        protected TextBox TxtUserName;

        private void InitDataBind()
        {
            Dictionary<int, string> dictionary = new Dictionary<int, string>();
            for (int i = 0x7d0; i <= DateTime.Today.Year; i++)
            {
                dictionary.Add(i, i.ToString() + "年");
            }
            this.DropYear.DataSource = dictionary;
            this.DropYear.DataBind();
            this.DropYear.SelectedValue = DateTime.Today.Year.ToString();
            Dictionary<int, string> dictionary2 = new Dictionary<int, string>();
            for (int j = 1; j <= 12; j++)
            {
                dictionary2.Add(j, j.ToString() + "月");
            }
            this.DropMonth.DataSource = dictionary2;
            this.DropMonth.DataBind();
            this.DropMonth.SelectedValue = DateTime.Today.Month.ToString();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                this.InitDataBind();
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -