예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         lbtype.Text = Request.QueryString["type"];
         Business.informations article = new Business.informations();
         if (Request.QueryString["type"] != null)
         {
             Repeater1.DataSource = article.Get(string.Format(" and thetype ='{0}'", Request.QueryString["type"]));
         }
         else
         {
             Repeater1.DataSource = article.Get("");
         }
         Repeater1.DataBind();
         article = null;
     }
 }
예제 #2
0
        protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            string Id = e.CommandName;

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