Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable table = d.GetDonors();
         Dropdownlist1.DataSource     = table;
         Dropdownlist1.DataTextField  = "PersonLastName";
         Dropdownlist1.DataValueField = "PersonKey";
         Dropdownlist1.DataBind();
     }
 }