摘要: 首先添加引用下载MvcPager别忘了再Web.config文件中添加引用(1)标准URL分页Controllers :View Code public ActionResult Index(int? id){ using (var db = new MvcPagerSampleDataContext()) { PagedList<Order> orders = db.Orders.ToPagedList(id ?? 1, 20); return View(orders); }}view :View Code <%@ Page Title="" Langu 阅读全文
posted @ 2013-05-06 15:10 坐在地狱,仰望天堂 阅读(304) 评论(0) 推荐(0) 编辑
摘要: View Code function ChangeParam(name, value) { var url = window.location.href; var newUrl = ""; var reg = new RegExp("(^|)" + name + "=([^&]*)(|$)"); var tmp = name + "=" + value; if (url.match(reg) != null) { newUrl = url.replace(eval(reg), tmp); ... 阅读全文
posted @ 2013-05-06 14:48 坐在地狱,仰望天堂 阅读(532) 评论(0) 推荐(0) 编辑
摘要: Global.asax :View Code protected void Application_Error(object sender, EventArgs e) { Exception exception = Server.GetLastError(); Response.Clear(); HttpException httpException = exception as HttpException; RouteData routeData = new RouteDat... 阅读全文
posted @ 2013-05-06 14:47 坐在地狱,仰望天堂 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Uploadify Version 3.2Options选项设置auto 选择文件后自动上传buttonClass 给“浏览按钮”加css的class样式buttonCursor 鼠标移上去形状:arrow箭头、hand手型(默认)buttonImage 鼠标移上去变换图片buttonText 按钮文字checkExisting 在目录中检查文件是否已上传成功(1 ture,0 false)debug 是否显示调试框(默认不显示false)fileObjName 设置一个名字,在服务器处理程序中根据该名字来取上传文件的数据。默认为Filedata,$tempFile = $_FILES[ 阅读全文
posted @ 2013-05-06 14:41 坐在地狱,仰望天堂 阅读(192) 评论(0) 推荐(0) 编辑