06 2015 档案

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

点击右上角即可分享
微信分享提示