06 2015 档案
摘要:一,控制器CheckIndexAreaRegistration.cspublic class CheckIndexAreaRegistration : AreaRegistration { public override string AreaName { ...
阅读全文
摘要:一,Model public class Course { public int Id { get; set; } public string Name { get; set; } } public c...
阅读全文
摘要:1,index@{ ViewBag.Title = "Index";} Index id 姓名 状态 编辑 @fo...
阅读全文
摘要:/// /// 查询数据库中学生姓名 /// /// public ActionResult Index() { //使用linq,查询数据上下文中的学生姓名 L...
阅读全文
摘要:// // GET: /Home/ TestTryEntities Db = new TestTryEntities(); public ActionResult Index() { return View...
阅读全文
摘要:public class CheckStreamReader { //使用的数据: private static HashSet hash = new HashSet(); private byte[] fastCheck = new byte...
阅读全文
摘要:/// /// 远程获取页面数据 /// /// 地址 /// public static string GetHttpData(string Url) { //strin...
阅读全文
摘要:/// /// 替换图片路径 /// /// /// public string ReplaceImgSrc(string strContent) { return Re...
阅读全文
摘要:/// /// 写入ecexl /// /// /// public static void CreateExcel(DataTable dt, string FileName) { ...
阅读全文
摘要:public static double SimilarityNoContains(string a, string b) { string a1 = ""; string b1 = ""; if (a=...
阅读全文
摘要:/// /// 求出数据平均值,并保留三位小数 /// /// 数据集合 /// public static double average(List Valist) { d...
阅读全文
摘要:/// /// 获取百度关键词出现的密度 /// /// 标题、关键词 /// 如:10 (满为100) public static int GetBaiDuKeywordDensity(string keyW...
阅读全文
摘要://// /// 将DataTable对象转换成XML字符串 /// /// DataTable对象 /// XML字符串 public static string CDataToXml(DataTable d...
阅读全文
摘要:/// /// DES加密字符串 /// /// 待加密的字符串 /// 加密密钥,要求为8位 /// 加密成功返回加密后的字符串,失败返回源串 public static string Encr...
阅读全文
摘要:1,建立存储过程create PROCEDURE [dbo].[p_Company_Insert]@CompanyCollection [CompanyTableType] READONLYASINSERT INTO tb_Company ( [cpID] ...
阅读全文
摘要:1,获取相对路径的html然后保存到本地路径 /// /// Html方法 /// /// public void CollectionContent(string url) { Res...
阅读全文
摘要:/// /// XML转换为DataTable /// /// 文件路径 /// 节点路径 /// 返回DataTable public static DataTable XmlToDataTable(stri...
阅读全文
摘要://获取字典 private Dictionary LoadPinYin(HttpContext context) { string link = context.Request.QueryString["link"]; Dic...
阅读全文
摘要:/// /// md5加密方式 /// /// 原字符串 /// 16,32 位 /// 加密后的字符串 public static string MD5(string str, int code) ...
阅读全文
摘要:string file = ((fileNameIndex)index).ToString(); if (!Directory.Exists(HttpContext.Current.Server.MapPath("~/admin/upload/") + ((f...
阅读全文
摘要:1,图片加载JSvar LazyLoad = function (options) { this.SetOptions(options); this.container = $(this.options.container); this.childs = $(this.option...
阅读全文