Beispiel #1
0
        protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            string Id = e.CommandName;

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