ASP.NET中惯用方法总结

ASP.NET中常用方法总结一:JQuery实现在GridView中 点击一行的任意位置选中这一行中的CheckBox public stat

ASP.NET中常用方法总结

一:JQuery实现在GridView中 点击一行的任意位置  选中这一行中的CheckBox

 public static string Md5Hash(string text)        {            byte[] bytes = System.Text.Encoding.UTF8.GetBytes(text);            MD5 md5 = MD5.Create();            byte[] resultBytes=md5.ComputeHash(bytes);//md5            string md5Result = "";            for (int i = 0; i < resultBytes.Length; i++)            {                md5Result += resultBytes[i].ToString("X2");            }            return md5Result;        }