zoukankan      html  css  js  c++  java
  • 20151223:Web:审核:审核和取消

    审核和取消不需要设计页面,只需写后台代码

    审核:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    
    public partial class ShenHe : System.Web.UI.Page
    {
        private UsersDataContext context = new UsersDataContext();
        protected void Page_Load(object sender, EventArgs e)
        {
            string uid = Request["uid"].ToString();
            users data = context.users.Where(p => p.UserName == uid).First();
            data.State = 1;
            context.SubmitChanges();
            Response.Redirect("Main.aspx");
        }
    }

    取消:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    
    public partial class QuXiao : System.Web.UI.Page
    {
        private UsersDataContext context = new UsersDataContext();
        protected void Page_Load(object sender, EventArgs e)
        {
            string uid = Request["uid"].ToString();
            users data = context.users.Where(p => p.UserName == uid).First();
            data.State = 2;
            context.SubmitChanges();
            Response.Redirect("Main.aspx");
        }
    }
  • 相关阅读:
    Expectation Maximization Algorithm
    Cramer-Rao Bounds (CRB)
    宽带DOA估计方法
    Statistical Methods for Machine Learning
    Bootstrap Method
    算法学习————猫树
    扩展KMP详解
    网络流的模型和应用
    [CQOI2011]动态逆序对
    CF1278F Cards
  • 原文地址:https://www.cnblogs.com/mn-b/p/5079196.html
Copyright © 2011-2022 走看看