摘要:/// /// 对象初始化器测试 /// public class Initializer { //测试对象初始化器 public static void Test1() { Student stu1 = new Student() { name = "zhangsan", ag...
阅读全文
摘要:/// /// /匿名类型测试 /// //参数名称、类型、顺序不同,则同一程序中声明的匿名类型实例不同 /// class AnonymousType { //测试匿名类型 public static void Test1() { var var1 = new { name ...
阅读全文
摘要://定义扩展方法 //1.类类型必须为静态的 //2. 类名为扩展方法的容器,扩展名是要被扩展的类型名称,既要其中添加方法的类 //3.this关键字是扩展方法标识,this关键字后面的类型为要扩展的类型 //4.this变量后面的的变量为参数列表 static class StringExten...
阅读全文
摘要:1.http://code.tutsplus.com/2.http://www.saaraan.com/ web前端3.http://ifxoxo.com/>> json:http://ifxoxo.com/json-array.html web前端4.http://www.w3cschool.cc...
阅读全文
摘要:http://www.cnblogs.com/rush/archive/2012/05/15/2502264.html#lb1
阅读全文
摘要:一般处理程序后台 //获取页面参数 string count = context.Request["startCount"]; string descri = context.Request["starDescri"]; //返回处理结果 context.Response.Write("true"...
阅读全文
摘要://一般处理程序,GET方式提交(data:要传送的数据键值对) jQuery.ajax( { type: 'GET', url: 'GradeHandler.ashx?startCount&starDescri', data: { startCount: startCount, starDesc...
阅读全文
摘要:链接:http://blog.csdn.net/tomorow/article/details/6690506
阅读全文
摘要:解决方法: 在实现IHttpHandler的同时,也要实现IRequiresSessionState接口,其命名空间为:System.Web.SessionState。 public class Logout : IHttpHandler, System.Web.SessionState.IReq...
阅读全文
摘要:public int UpdateImgs(FileUpload FileUpload1, HttpServerUtility server, int id) { //如果不是图片文件 if (!isImg(FileUpload1)) return 0; string fileName = Fil...
阅读全文
摘要:http://www.cnblogs.com/luminji/archive/2011/03/29/1997812.html
阅读全文