using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace sanjiliandong
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
binprovice();
}
}
private void binprovice()
{
BLL.province b = new BLL.province();
DataTable dt= b.GetList("").Tables[0];
this.Droprovice.DataSource = dt;
this.Droprovice.DataTextField = "provincename";
this.Droprovice.DataValueField = "provinceID";
this.Droprovice.DataBind();<