Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         DataSet ds = marclass.GetMarketingEmailID();
         ddlEmailID.DataSource    = ds.Tables[0];
         ddlEmailID.DataTextField = "emailid";
         ddlEmailID.DataBind();
         ddlEmailID.Items.Insert(0, new ListItem("--Select--", "--Select--"));
         ddlEmailID.Items.Insert(1, new ListItem("ALL", "ALL"));
     }
 }