05 2014 档案
摘要:学习材料一 《C#抓取网页数据分析》 抓取Web网页数据分析 HttpWebRequest 和 HttpWebResponse 的应用
阅读全文
摘要:1.[Required] : 必须输入[Required(ErrorMessage = "请输入用户名")] 2.[StringLength] : 限制字符串长度[StringLength(10, ErrorMessage = "长度不能超过10个字符")] 3.[Range] : 限制取值范围...
阅读全文
摘要:MVC不错的学习资料:http://www.cnblogs.com/darrenji/
阅读全文
摘要:Entity Framework中DbContext首次加载OnModelCreating会检查__MigrationHistory表,作为使用Code Frist编程模式,而实际先有数据库时,这种检测就是多余的了,所以需要屏蔽,在EF 4.1之前可以使用在OnModelCreating函数总加入下...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
摘要:class Program { static void Main(string[] args) { Test(0); Console.ReadKey(); } static void...
阅读全文
摘要:class Program { static void Main(string[] args) { //需要将对象的状态保存起来 持久化 //序列化: 将对象的状态持久化到某1中设备上(磁盘.) ...
阅读全文
摘要:#region 文件操作 /// /// 文件操作 /// /// /// private void button3_Click(object sender, EventArgs e) { ...
阅读全文
摘要:#region 目录操作 /// /// 目录操作 /// /// /// private void button2_Click(object sender, EventArgs e) { ...
阅读全文
摘要:#region 路径操作 /// /// 路径操作 /// /// /// private void button1_Click(object sender, EventArgs e) { ...
阅读全文
摘要:class Person { public string Name { get; set; } //1. 私有化构造函数 //2. 提供1个私有的静态的Person类型的变量 //3. 提供1个公共的静态的方法 用于返回上面的变量. private static Person p; pu...
阅读全文
摘要:public class BubbleSortLib { public int[] Sort(int[] arr) { for (int outer = arr.Length - 1; outer...
阅读全文
摘要:@RenderSection("bscript", false) //false表示不是必须填充填充bscript占位符 @section bscript{}
阅读全文
摘要:@Html.Label("Label", "Label") @*渲染成Label*@@Html.Hidden("Hidden","Hidden") @*渲染成 *@@Html.TextBox("TextBox", "TextBox", new { color="red",font="2",size=...
阅读全文
摘要:HttpUtility.HtmlEncode来预处理用户输入,这能阻止用户向视图中用链接注入js代码或html标记1、[Required]:非空验证2、[StringLength(**)]:设置字符的长度2.1、[StringLength(**,MinimumLength=*):设置字符长度Mini...
阅读全文
摘要:@model MvcApplication1.Models.ViewClass @{ ViewBag.Title = "View2"; } @******引用这两个js实现客户端的验证********@viewdata无法跨控制传值 ViewData: @ViewData["View1"]TempD...
阅读全文
摘要:@{ ViewBag.Title = "ajax"; }@using (@Html.BeginForm()) { @Ajax.ActionLink("这是一个ajax请求", "ajax", new AjaxOptions{ UpdateTargetId = "ajaxId", //Insertio...
阅读全文
摘要:@{ ViewBag.Title = "主页"; } 这里就是渲染Body啦.~~不需要写神马<asp:Content />,其实因为RenderBody()不在有歧义. @ViewBag.Message 若要了解有关 ASP.NET MVC 的更多信息,请访问 htt...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using System.Web.Security;namespace 验证权限.Control...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace 过滤器.Filtes{ /// /// 全局异常过滤器 ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace 过滤器.Filtes{ /// /// 授权过滤器,在Acti...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using 过滤器.Controllers;namespace 过滤器.Filtes{ p...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Data.Entity.Infrastructure;using System.Linq;using System.Linq.Expressions;using System.Tex...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
摘要:using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 序列化反序列化{ c...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 内置委托{ static class Program ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Lambda表达式{ class Program ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Text;using System.Linq;namespace LinQ{ class Program { static void Main(string...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace outAndref{ class Program ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 二维数组{ class Program { ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;/* * 单例模式 * 保证对象的唯一性 */namespace SingleDemo{ class Program { ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 抽象工厂{ class Program { static void Main(string...
阅读全文
摘要:sdfsdfsdfrgrefg sdfsdfsdfrgrefg sdfsdfsdfrgrefg sdfsdfsdfrgrefg sdfsdfsdfrgrefg sdfsdfsdfrgrefg 用特定的样式包起来 ...
阅读全文
摘要:sdfsdfsdf sdfsdfsdf sdfsdfsdf sdfsdfsdf sdfsdfsdf sdfsdfsdf ...
阅读全文
摘要:sksdhfksdlfsdlf sksdhfksdlfsdlf ...
阅读全文
摘要:男 女 保密 篮球 足球 乒乓球 冰球 羽毛球 橄榄球
阅读全文
摘要:fasdfljkaslkdfjalksdjflakjdlasdfljkaslkdfjalksdjflakjasdfljkaslkdfjalksd jflakjasdfljkaslkdfjalksdjflakjasdfljkaslkdfjalksdjfl...
阅读全文
摘要:sdfsldfjlksjalkfjdlsakjflksjadlfkjasldkjflksdaf 阿来的快放假了卡斯的减肥拉开斯蒂芬
阅读全文
摘要:上的发生的发生法 上的发生的发生法 上的发生的发生法 上的发生的发生法 上的发生的发生法 上的发生的发生法 上的发生的发生法 上的发生的发生法 上的发生的发生法 上的发生的发生法 上的发生的发生法 上的发生的发生法 ...
阅读全文
摘要:private static long CalculateFolderSize(string FolderName){ return FolderName.Length;} public delegate long CalculateFolderSizeDelegate(string...
阅读全文
摘要:static void Main(string[] args) { /*int i,j; Method1(10,20,out i ,out j ); Console.WriteLine("{0}and{1}", i, ...
阅读全文

浙公网安备 33010602011771号