Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["_userid"] == null)
        {
            Common.MessageAlert.AlertLocation(Page, "alert('对不起,您没有登陆!');location.href='Login.aspx'");
        }
        else
        {

            if (!IsPostBack)
            {
                Model.order mooj = new Model.order();
                mooj.userid = Convert.ToInt32(Session["_userid"]);
                BLL.oredr boo = new BLL.oredr();
                int i = boo.count(mooj);
                AspNetPager1.RecordCount = i;
                AspNetPager1.PageSize = 6;
                pp();

            }
        }
    }