Exemplo n.º 1
0
        protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            string Id = e.CommandName;

            Business.users users = new Business.users();
            users.Delete(Id);
            Repeater1.DataSource = users.Get("");
            Repeater1.DataBind();
            users = null;
        }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         Business.users users = new Business.users();
         Repeater1.DataSource = users.Get("");
         Repeater1.DataBind();
         users = null;
     }
 }