摘要: 转换方法代码: 1 #region SafeParse 2 public static bool SafeParseBool(object target, bool defaultValue) 3 { 4 if (target == null) return defaultValue; 5 stri 阅读全文
posted @ 2016-02-29 17:50 赛跑的蜗牛 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 占位符的使用: 下面是一个模板页 _Layout.cshtml <!DOCTYPE html> <html> <head> @RenderSection("headtop", false) @RenderSection("head", false) </head> <body id="body"> 阅读全文
posted @ 2016-02-29 16:26 赛跑的蜗牛 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 1 //URL: http://localhost:1897/User/Press/UserContent.aspx/9878?id=1#toc 2 Request.ApplicationPath; //结果: / 3 Request.PhysicalPath; //结果: D:\Projects\ 阅读全文
posted @ 2016-02-29 15:06 赛跑的蜗牛 阅读(907) 评论(0) 推荐(0) 编辑