コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["username"] == null)
        {
            Response.Write("<script>alert('亲爱的,请先登录!');location.href='Login.aspx';</script>");
        }

        int userid = getUserId();

        //goods = GoodService.GetUserProcessingGood(userid);

        goods = GoodService.GetAllGoodByUserId(userid);
    }