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

            Business.correcting correcting = new Business.correcting();
            correcting.Delete(Id);
            Repeater1.DataSource = correcting.Get("");
            Repeater1.DataBind();
            correcting = null;
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         Business.correcting correcting = new Business.correcting();
         Repeater1.DataSource = correcting.Get(string.Format(" and userid ='{0}'", (string)Session["UserId"]));
         Repeater1.DataBind();
         correcting = null;
     }
 }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         Business.correcting correcting = new Business.correcting();
         Repeater1.DataSource = correcting.Get("");
         Repeater1.DataBind();
         correcting = null;
     }
 }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         if ((string)Session["UserType"] == "老师")
         {
             Business.correcting correcting = new Business.correcting();
             Repeater1.DataSource = correcting.Get("");
             Repeater1.DataBind();
             correcting = null;
         }
         else
         {
             Response.Redirect("login.aspx");
         }
     }
 }