using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Collections.Generic;
namespace CSShop
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(!this.IsPostBack)
{
// CSShop.DAL.Dz_ZoneDAL l = new CSShop.DAL.Dz_ZoneDAL();
// List<CSShop.Model.Dz_Zone> l = (new CSShop.DAL.Dz_ZoneDAL().GetZoneList()) as List<CSShop.Model.Dz_Zone>;//强制转换泛型
//this.DropDownList1.DataSource = l.GetZoneList();
List<CSShop.Model.Dz_Zone> l = new BLL.Dz_Zone().GetZoneList();
this.DropDownList1.DataSource = l;
this.DropDownList1.DataValueField = "id";
this.DropDownList1.DataTextField = "ZoneName";
this.DropDownList1.DataBind();
}
}
}
}