예제 #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;
        }
예제 #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;
     }
 }