摘要: / 网站根目录./ 当前目录../ 上级目录 阅读全文
posted @ 2014-03-29 02:23 bl84757922 阅读(71) 评论(0) 推荐(0) 编辑
摘要: #region 1.0 ContentResult - 返回字符串 Response.Write(""); /// /// 1.0 ContentResult /// /// public ActionResult ContentStr() { //1.调用 控制器类 提供的便捷方法 创建 ContentResult对象 //return Content("我是字符串~~你懂吗?"); //2.手动创建 ContentResult 对象 ... 阅读全文
posted @ 2014-03-29 02:21 bl84757922 阅读(144) 评论(0) 推荐(0) 编辑
摘要: this.GetType().Assembly.Location 阅读全文
posted @ 2014-03-26 08:25 bl84757922 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1.创建自定义特性 类继承于Attribute类,并且自定义特性的命名规则于:XXXXAttriubute1 /// 2 /// 跳过登陆 标记:任何类 或者方法 有此标记,则不再验证是否有Session3 /// 4 public class SkipLoginAttribute:Attribute5 {6 }2.给方法或类写上特性 可以写上多个特性,以逗号分开 [HttpGet,MyAttr.SkipLogin] public ActionResult Login() { //Reques... 阅读全文
posted @ 2014-03-25 07:22 bl84757922 阅读(1114) 评论(0) 推荐(0) 编辑
摘要: 1 阅读全文
posted @ 2014-03-25 07:11 bl84757922 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 例如:update Table set column="" where id in (@id)这样的带in方法的传参方式,传统将不能正常执行修改:exec('update Table set column="" where id in ('+@id+')')必须修改成函数调用方式 阅读全文
posted @ 2014-03-23 17:19 bl84757922 阅读(306) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/kyle8525_nsn/article/details/7851587 阅读全文
posted @ 2014-03-22 14:50 bl84757922 阅读(89) 评论(0) 推荐(0) 编辑
摘要: dynamic编辑时不检查类型 dynamic a=new model{id=1}; Console.WriteLine(a.id);不会报错。 dynamic在编译后是object object是一个类型: object a=new model{id=1}; Console.WriteLine(a.id);报错。a没有id这个属性 阅读全文
posted @ 2014-03-21 23:24 bl84757922 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1.Grf不能下载问题 1 有些IIS7虚拟空间不允许grf文件下载,可以修改空间根目录下的web.config文件添加一个mimeType文件类型:如下 2 3 4 5 6 7 8 9 10 如果空间根目录下没有这个文件,用记事本编辑一个,文件名保存为web.config上传到web空间根目录即可 阅读全文
posted @ 2014-03-18 09:14 bl84757922 阅读(162) 评论(0) 推荐(0) 编辑
摘要: SQL Server(MSSQLSERVER):SQL主数据库服务SQL Server Reporting Service(MSSQLSERVER):SQL报文服务(会不断地去请求数据库,建议关闭) 阅读全文
posted @ 2014-03-11 23:39 bl84757922 阅读(138) 评论(0) 推荐(0) 编辑