protected void Page_Load(object sender, EventArgs e) { this.btnUnPack.Click += new EventHandler(this.UnPackOrderInfos); this.btDS.Click += new EventHandler(this.excelDS); this.btDS.Enabled = false; if (!Page.IsPostBack) { DataTable dtChannelList = DistributorGradeBrower.GetChannelList(); foreach (DataRow row in dtChannelList.Rows) { ListItem item = new ListItem(); item.Value = row["id"].ToString(); item.Text = row["ChannelName"].ToString(); ddlChannelList.Items.Add(item); } } }