08 2013 档案

摘要:Server.MapPath()相关1.Server.MapPath()介绍Server.MapPath(string path)作用是返回与Web服务器上的指定虚拟路径相对应的物理文件路径。其参数path为Web服务器的虚拟路径,返回结果是与path相对应的物理文件路径。但有时参数并非为虚拟路径,而是用户自定义的文件名。Server.MapPath()的全名是System.Web.HttpContext.Current.Server.MapPath()。有时在程序调试时会提示“当前上下文中不存在名称“Server””错误,从而不支持函数Server.MapPath()的使用。尽管引用了命名空 阅读全文
posted @ 2013-08-20 10:38 沉墨的鱼 阅读(140) 评论(0) 推荐(0)
摘要:#region 匹配中的图片路径实际链接 /// /// 匹配中的图片路径实际链接 /// /// 字符串 /// /// public static string GetImg(string ... 阅读全文
posted @ 2013-08-19 10:38 沉墨的鱼 阅读(278) 评论(0) 推荐(0)