摘要: C#版winform实现UrlEncode(这个方法也可以用于web)urlEncode 为编码,UrlDecode 为解码。 public static string UrlEncode(string str) { StringBuilder sb = new StringBuilder(); byte[] byStr = System.Text.Encoding.UTF8.GetBytes(str); //默认是System.Text.Encoding.Default.GetBytes(str) for (in... 阅读全文
posted @ 2012-10-12 19:16 沐雪架构师 阅读(635) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 取得网站的根目录的URL /// </summary> /// <returns></returns> public static string GetRootURI() { string AppPath = ""; HttpContext HttpCurrent = HttpContext.Current; HttpRequest Req; if (HttpCurrent != null) ... 阅读全文
posted @ 2012-10-12 16:47 沐雪架构师 阅读(1231) 评论(0) 推荐(0) 编辑
摘要: network service 角色 完全控制的权限 (xml目录里的所有文件都要赋这个权限)xml/sys/base.configxml/sys/base.configbaidu.xml index.htmlejuportal部署:1 权限:在iis6里设置文件夹 files,xml,templets,logs 添加角色network service,并且给完全权限。2 iis里web目录添加aspnet角色,并且给最大权限。今天发布的时候,由于在本地有测试数据,有2个存放图片的地方没有发布出来。1个是Kindeditor图片存放的路径;2是发布新闻的其他图片存放路径;解决方法:将本地的2. 阅读全文
posted @ 2012-10-12 09:20 沐雪架构师 阅读(134) 评论(0) 推荐(0) 编辑
摘要: space_blog_list.htm空间-日志列表space_blog_view.htm空间-日志阅读 阅读全文
posted @ 2012-10-12 01:08 沐雪架构师 阅读(183) 评论(0) 推荐(0) 编辑