Пример #1
0
 protected void bind()
 {
     DataSet ds = new DLL.BLL.admin().GetAllList();
     rptList.DataSource = ds;
     rptList.DataBind();
     if (ds != null)
     {
         if (ds.Tables.Count != 0)
         {
             if (ds.Tables[0].Rows.Count < 10)
             {
                 DataPager1.Visible = false;
             }
         }
     }
 }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     DataSet ds = new DLL.BLL.admin().GetList("id=" + Request.QueryString["parameter"]);
     rptdetail.DataSource = ds;
     rptdetail.DataBind();
 }
Пример #3
0
 protected void Buttonabandon_Click(object sender, EventArgs e)
 {
     DLL.Model.admin admin = new DLL.BLL.admin().GetModel(int.Parse(Request.QueryString["parameter"]));
     new DLL.BLL.admin().Delete(admin.id);
     Response.Redirect("List_admin.aspx");
 }