Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     lblUpdateStatus.Text = string.Empty;
     if (!IsPostBack)
     {
         lstGroups.DataSource     = GroupDB.GetAll();
         lstGroups.DataTextField  = "Group_Name";
         lstGroups.DataValueField = "Group_ID";
         lstGroups.DataBind();
     }
 }
 protected override void OnPreRender(EventArgs e)
 {
     base.OnPreRender(e);
     dtgGroups.DataSource = GroupDB.GetAll();
     dtgGroups.DataBind();
 }