1、MVC带参数跳转 return RedirectToAction("方法名","控制器名",new{参数名="参数值”,Id="1001"});(如return RedirectToAction("ShowMsg", "Home", new { Msg = Server.UrlEncode("请选择商品"), Url = "/BookList/Index" });)
2、sqlserver高效分页
select * from
(select *,Num=ROW_NUMBER() over (order by agentid) from agentProfile_AgentInfo) as agentInfo
where agentInfo.Num between ((7-1)*10+1) and (7*10) /*PageIndex是7 PageSize是10*/
(select *,Num=ROW_NUMBER() over (order by agentid) from agentProfile_AgentInfo) as agentInfo
where agentInfo.Num between ((7-1)*10+1) and (7*10) /*PageIndex是7 PageSize是10*/