06 2012 档案

摘要:URL的获取很简单,ASP.NET通用: 【1】获取 完整url (协议名+域名+虚拟目录名+文件名+参数)string url=Request.Url.ToString();【2】获取 虚拟目录名+页面名+参数:string url=Request.RawUrl; (或 string url=Request.Url.PathAndQuery;)【3】获取 虚拟目录名+页面名: string url=HttpContext.Current.Request.Url.AbsolutePath; (或 string url= HttpContext.Current.Request.Path;)【.. 阅读全文
posted @ 2012-06-19 09:29 lixiaojin 阅读(191) 评论(0) 推荐(0) 编辑
摘要:一个简单的asp.net mvc3分页using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Web.Mvc;using System.Web.Mvc.Html;namespace System.Web.Mvc.Html{ public static class ExtensionMethods { /// <summary>/// 创建分页链接/// </summary> ... 阅读全文
posted @ 2012-06-15 15:31 lixiaojin 阅读(407) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示