📄 citylist.aspx.cs
字号:
namespace PowerEasy.WebSite.Admin.Shop
{
using PowerEasy.Accessories;
using PowerEasy.Components;
using PowerEasy.Shop;
using PowerEasy.Web.UI;
using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class CityList : AdminPage
{
protected DataList DlstCity;
protected DropDownList DropProvince;
protected HtmlForm form1;
protected string inputControlId;
protected string inputControlId2;
protected ScriptManager ScriptManager1;
protected UpdatePanel UpnlProvince;
private void DlstCityBind(string province)
{
this.DlstCity.DataSource = Region.GetCityListByProvince(province);
this.DlstCity.DataBind();
}
protected void DropProvince_SelectedIndexChanged(object sender, EventArgs e)
{
this.DlstCityBind(this.DropProvince.SelectedValue);
}
protected void Page_Load(object sender, EventArgs e)
{
if (!this.Page.IsPostBack)
{
this.inputControlId = BasePage.RequestString("OpenerText");
this.inputControlId2 = BasePage.RequestString("OpenerText2");
if (string.IsNullOrEmpty(this.inputControlId2))
{
this.inputControlId2 = this.inputControlId;
}
this.DropProvince.DataSource = DeliverCharge.GetProvinceList();
this.DropProvince.DataBind();
string province = SiteConfig.ShopConfig.Province;
this.DropProvince.SelectedValue = province;
this.DlstCityBind(province);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -