zoukankan      html  css  js  c++  java
  • 无敌存储过程分页使用

     public ActionResult Index(int pageindex=1)
            {
                string name = Request.Form["name"];
                StringBuilder str = new StringBuilder();
                if (!string.IsNullOrEmpty(name))
                {
                    str.Append("and ShoppingName like '%" + name + "%'");
                }
                int totalNum = 0;
                ProductBLL.ProductBLL bll = new ProductBLL.ProductBLL();
                ParamModel model = new ParamModel() { StrWhere = str.ToString(), TableName = "Shopping", Columns = "*", IndexCol = "ShoppingId", OrderCol = "ShoppingId asc", PageIndex = pageindex-1, PageSize = 5 };
               
                PagedList<ProjectModel> pList = PageCommon.GetPagedListData<ProjectModel>(model, out totalNum);
                pList.PageSize = model.PageSize;
                pList.TotalItemCount = totalNum;
                pList.CurrentPageIndex = pageindex;
                return View(pList);
            }
  • 相关阅读:
    CSS
    iframe自适应宽度和高度
    用css实现文字超出指定宽度显示省略号(...)
    删除数据时的提示效果(遮罩)
    网页选项卡的应用
    列表应用(导航菜单)
    下拉列表框中的事件应用(联动展示数据)
    jQuery移除事件
    toggle()方法
    jQuery切换事件
  • 原文地址:https://www.cnblogs.com/itXiongMao/p/9525678.html
Copyright © 2011-2022 走看看