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

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