摘要: 有多种导航到 Web 管理界面的方法。如果您要在 Visual Studio .NET 2005 内部生成 Web 应用程序,您可以通过从 Website 菜单下选择 ASP.NET Configuration 来打开 Web 站点管理工具。如果您要在 Visual Studio .NET 外部开发 Web 应用程序,您可以通过请求特殊的页 WebAdmin.axd 来直接导航到 Web 站点管理工具。例如,如果您的应用程序位于本地计算机上名为 MyWebApp 的虚拟目录中,则可以通过在 Web 浏览器中输入以下 URL,打开应用程序的 Web 站点管理工具。 http://localhos 阅读全文
posted @ 2011-07-18 15:48 Sphix 阅读(458) 评论(0) 推荐(0) 编辑
摘要: Full-Text Search feature does not work properly. SQL Server gives error '30053' with message---Msg 30053, Level 16, State 102, Line 2Word breaking timed out for the full-text query string. This can happen if the wordbreaker took a long time to process the full-text query string, or if a larg 阅读全文
posted @ 2011-06-24 11:35 Sphix 阅读(409) 评论(0) 推荐(0) 编辑
摘要: Last week the CTP5 build of the new Entity Framework Code First has beenreleasedby data team at Microsoft. Entity Framework Code-First provides a pretty powerful code-centric way to work with the databases. When it comes to associations, it brings ultimate flexibility. I’m a big fan of the EF Code F 阅读全文
posted @ 2011-06-08 10:56 Sphix 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 枚举类型本地化操作的简单方案,并应用到Asp.net MVC的DropdownList中。 阅读全文
posted @ 2011-03-29 17:21 Sphix 阅读(2316) 评论(2) 推荐(1) 编辑
摘要: You may have heard a bit of news about a new thumbnail feature for themes coming to WordPress 2.9. Yes, you’ll be able to easily upload a post thumbnail. However, it’s not just thumbnails. The image will have various sizes. So, I’m going to refer to this feature as the post image feature. In this t. 阅读全文
posted @ 2011-03-27 17:51 Sphix 阅读(306) 评论(0) 推荐(0) 编辑
摘要: Add these 9 lines of code to your app public class AdminRouteHandler : IRouteHandler{ public IHttpHandler GetHttpHandler(RequestContext requestContext) { RouteData routeData = requestContext.RouteData; routeData.Values["controller"] = "Admin" + requestContext.RouteData.GetRequire 阅读全文
posted @ 2011-03-22 21:01 Sphix 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Self-track entity 增删改查注意的地方,由于在单web中没有WCF的序列化和反序列化处理,在更新的时候,单纯的ApplyChanges()无法进行状态的改变,有两种方案1.在获得对象的时候,用对象的StartTrack 方法来强制开启对象自跟踪。2.由于第一种方法有时候,很难知道对象获取的地方,开启跟踪比较麻烦。我们可以在更新的时候强制设置跟踪状态方法,如:course.MarkAsModified();但这个方法也有个不好,我们必须为Add,Delete,Modify进行不同的处理,来调用不同的MarkAs...等状态标记方式。publicclassCourseService 阅读全文
posted @ 2011-03-21 01:49 Sphix 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 有的时候需要检测上传文件的真实类型,才能准确的判断用户上传的文件是否真的是需要过滤的文件类型 大多数情况下我们都是用 Path.GetExtension(file.FileName) 获取文件的扩展名,然后进行判断文件是否是我们需要过滤的文件,但是这种方法只能得到表面上的扩展名,如果一些恶作剧的用户故意把 text的文件更改为 jpg 那么Path.GetExtension(file.FileName)获取到的文件类型就是 jpg 而不是text 用下面的方法会得到文件的真实类型 privateboolIsAllowedExtension(HttpPostedFilehifile) { boo 阅读全文
posted @ 2011-02-11 16:23 Sphix 阅读(782) 评论(0) 推荐(0) 编辑
摘要: 多线程断点续传[代码] 阅读全文
posted @ 2010-05-25 10:36 Sphix 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Visual Tool:  1、SQLite Database Browser 免费并开源的可视化工具,采用QT开发,所以支持多个平台。 阅读全文
posted @ 2010-03-11 15:34 Sphix 阅读(203) 评论(0) 推荐(0) 编辑