摘要: 某些环境下用 System.Web.HttpContext.Current.Server.MapPath 取不到目录。可以用下面两个方法:一,System.AppDomain.CurrentDomain.BaseDirectory.TrimEnd(newchar[]{'\\'})二,System.Web.HttpRuntime.AppDomainAppPath///<summary>///WebForm和WinForm通用的取当前根目录的方法///</summary>publicstaticstringBasePath{get{System.Diagno 阅读全文
posted @ 2012-09-26 22:49 yi-sheng 阅读(7259) 评论(0) 推荐(2) 编辑
摘要: Sqlite 使用笔记:VS2008 SQLite一,下载 System.Data.SQLite.DLL 添加引用。二,下载使用 DbHelperSQLite.cs 类。问题:SQLite中文显示乱码,解决方法,换个可视化管理工具,之前用的 CnPack SQLite Tool 手动建的数据库,读取出来中文就是乱码。换用sqlitebrowser-1.3-win正常。 阅读全文
posted @ 2012-09-26 01:47 yi-sheng 阅读(627) 评论(0) 推荐(0) 编辑