摘要:
sudo rm /usr/local/mysqlsudo rm -rf /usr/local/mysql*sudo rm -rf /Library/StartupItems/MySQLCOMsudo rm -rf /Library/PreferencePanes/My*vim /etc/hostco... 阅读全文
摘要:
AngularJs 阅读全文
摘要:
如果想输入属性 : public class Class1 { public int MyProperty { get; set; } }可以先输入prop 然后按table键就会自动生成属性框架 public class Class1 { public int MyProperty { get;... 阅读全文
摘要:
今天玩了玩C/S开发,也随便练习了很久不用的委托父窗体中写的代码#region 委托与事件传递 public delegate void TextChangedHandler(string s); public class CallObject { //用来存放子窗体返回的结果 public str... 阅读全文
摘要:
最近被WCF弄得身心疲惫。今天抽空看了一下页面传值的一些技巧。传统的cookie session 什么的就不介绍了今天介绍Context的用法首先要应用using System.Runtime.Remoting.Contexts;命名空间public static string strname =... 阅读全文
摘要:
这几天项目中做了个过滤器 现在共享一下/// /// 有登录入口的过滤器 继承此BaseController就可以了 /// public class BaseController : Controller,IAuthorizationFilter { protected override vo... 阅读全文
摘要:
HttpCookie cookie = new HttpCookie("user"); //给cookie赋值 cookie.Value = "test"; //如果多个字符赋值 cookie["sex"] = "男"; //或者 cookie.Values.Add("age","30"); //控... 阅读全文
摘要:
//MD5特殊加密publicstaticstringMD51(stringpassword){stringstrResult="";MD5md5=System.Security.Cryptography.MD5.Create();byte[]byteresult=md5.ComputeHash(E... 阅读全文