摘要: 思路:越过多少条 取多少条 例子 select top(5) * from city where cityID not in (select top((2-1)*5) cityID from city order by cityID desc) order by cityID desc // 每页查 阅读全文
posted @ 2016-10-13 11:05 51nb 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 1.在web.config中加入如下配置 <httpRuntime targetFramework="4.5" requestValidationMode="2.0" /> 2.在页面中的page节点中加入ValidateRequest="false",如下所示: <%@ Page Language 阅读全文
posted @ 2016-10-13 11:03 51nb 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 命令: devenv.exe /resetuserdata 使用:Visual Studio命令提示 下输入devenv.exe /resetuserdata 或者在单击“开始”,选择“运行...”键入devenv.exe /resetuserdata 阅读全文
posted @ 2016-10-13 11:02 51nb 阅读(2648) 评论(0) 推荐(0) 编辑
摘要: 使用很方便,记录备用! 阅读全文
posted @ 2016-10-13 10:53 51nb 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 1、安装以下组件yum groupinstall -y "Desktop" "Desktop Platform" "Desktop Platform Development" "Fonts" "General Purpose Desktop" "Graphical Administration To 阅读全文
posted @ 2016-10-13 10:43 51nb 阅读(1088) 评论(0) 推荐(0) 编辑
摘要: 1、安装以下组件yum groupinstall -y "Desktop" "Desktop Platform" "Desktop Platform Development" "Fonts" "General Purpose Desktop" "Graphical Administration To 阅读全文
posted @ 2016-10-13 10:42 51nb 阅读(93) 评论(0) 推荐(0) 编辑
摘要: jquery中的ajax方法参数总是记不住,这里记录一下。 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分 阅读全文
posted @ 2016-10-13 10:24 51nb 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1.要在一般处理程序中获取其他页面的session值,需要引用名空间: using System.Web.SessionState; 2.然后继承一个接口:IRequiresSessionState IRequiresSessionState 使用: context.Session["key"]; 阅读全文
posted @ 2016-10-13 10:20 51nb 阅读(4266) 评论(0) 推荐(0) 编辑