惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
博客园 - Franky
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LangChain Blog
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
AI
AI
T
Troy Hunt's Blog
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs

博客园 - T_98Dsky

通过避免下列 10 个常见 ASP.NET 缺陷使网站平稳运行 一触即发! - T_98Dsky - 博客园 目录身份验证 123hoo.com网摘中国开发手记(一)都是些简单的东西!:) 简单实用的重写URL(URLRewriter.dll) - T_98Dsky - 博客园 BMF http://www.rob-howard.net/ 备份SQL,在网上找到的,很简单,不错! 生成随机码,保存随机文件. 一个不错的SQL储存过程分页,储存过程+Repeater,如果只是浏览数据的话,快就一个字 把网上的图片取下来生成缩略图,以前在CSDN的一个朋友教的方法. sharpziplib是一个不错的在线压缩软软件.用VB.net简单写了个使用代码! yetanotherforum.net阅读笔记,(C#)因为工作的关系,习惯了VB.net,就用VB.net写吧(1) 虽然平时也都经常用到,.net+客户端脚本,从 ASP.NET 服务器控件插入客户端脚本 参考一个snapnet写的一个Repeater排序,他写的是C#版,我写的是VB.net版 一直都不清楚RSS,照着一个C#的例子,随便写了一个,也不知道对不对! 静态页面HTML绑定动态数据.aspx,用document.write的方法! 通过 XML 发布新闻 用 T-SQL 操作 XML 选择合适的数据控件
返回指定目录的物理路径
T_98Dsky · 2005-06-06 · via 博客园 - T_98Dsky

 1using System;
 2using System.IO;
 3using System.Web;
 4
 5namespace ZipDemo
 6{
 7    /// <summary>
 8    /// Util 的摘要说明。
 9    /// 提供一些通用的静态方法
10    /// </summary>

11    public class Util
12    {
13        /// <summary>
14        /// 返回指定目录的物理路径 
15        /// </summary>
16        /// <param name="DirecotryName">指定目录</param>
17        /// <returns></returns>

18        public static string GetDirecotry(string DirecotryName)
19        {
20            string dir = HttpContext.Current.Request.PhysicalApplicationPath;
21            dir = Path.Combine(dir,DirecotryName);
22            if(!Directory.Exists(dir))
23                Directory.CreateDirectory(dir);
24            return dir;
25        }

26    }

27}

28

posted on 2005-06-06 01:30  T_98Dsky   阅读(449)  评论(0)    收藏  举报

刷新页面返回顶部