随笔分类 -  ASP.NET

摘要:在MVC的WebApi中默认是没有开启Session会话支持的。需要在Global中重写Init方法来指定会话需要支持的类型 public override void Init() { PostAuthenticateRequest += MvcApplication_PostAuthenticat 阅读全文
posted @ 2017-01-19 14:02 blues不*死 阅读(384) 评论(0) 推荐(0)
摘要:在网上找的,已经验证过(验证环境:win7+vs2010)1.需要引用的命名空间using System.Security.Cryptography;using System.Text;2.2个方法,一个是32位,一个是18位/// /// 加密字符串,返回32位字符串 /// ... 阅读全文
posted @ 2014-08-22 16:58 blues不*死 阅读(217) 评论(0) 推荐(0)