上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

2016年4月17日

摘要: Jquery代码 一般处理程序的代码 网页代码 数据库 数据结构 阅读全文
posted @ 2016-04-17 21:59 努力的活着_在人间 阅读(272) 评论(0) 推荐(0)

2016年4月13日

摘要: //Students //.Where (u=>(u.SAddress=="南阳")) // //Students //.Select(e=>(new {e.SName,e.SAddress})) // // //from s in Students //where s.SName=="孔明" //select new {s.SName,s.SAddress} // //Students //... 阅读全文
posted @ 2016-04-13 11:20 努力的活着_在人间 阅读(202) 评论(0) 推荐(0)

2016年4月6日

摘要: 公共方法的定义:接口的封装,机械口。。 对接口进行封装, ->定义一个公共的接口: public interface IBaseDAL<T>Where T:class,new()//类型的约束:是一个类,并且有一个构造方法,可以被new的。具体类型由实现接口的接口来定义 { //将所有的公共方法写在 阅读全文
posted @ 2016-04-06 12:59 努力的活着_在人间 阅读(415) 评论(0) 推荐(0)
摘要: 工厂类的代码: 缓存类的代码: 阅读全文
posted @ 2016-04-06 12:37 努力的活着_在人间 阅读(334) 评论(0) 推荐(0)

2016年3月30日

摘要: 1 数据库缓存依赖 2 1、数据库缓存依赖(在数据库中创建一个缓存依赖项) 3 -S服务器名称 -E集成身份验证 -ed启动 -d数据库名称 -et指定缓冲依赖的表名 -t表名 4 在vs2010的命令提示符中运行(切换到aspnet_regsql.exe所在的目录) 5 aspnet_regsql 阅读全文
posted @ 2016-03-30 15:44 努力的活着_在人间 阅读(223) 评论(0) 推荐(0)

2016年3月28日

摘要: 禁用跨站脚本攻击拦截 1.在配置文件中<httpRuntime >节点中设置,requestValidationModel="2.0". 2.在页面page中,设置属性ValidateRequest="false"; 阅读全文
posted @ 2016-03-28 13:39 努力的活着_在人间 阅读(145) 评论(0) 推荐(0)
摘要: public System.Collections.Generic.List LoadPageData(int pageIndex, int pageSize, out int total) { DataSet ds = new DataSet(); SqlParameter totalParameter = new SqlPar... 阅读全文
posted @ 2016-03-28 10:40 努力的活着_在人间 阅读(755) 评论(0) 推荐(0)

2016年3月16日

摘要: ///验证码点击变化 ///用户登录界面代码 public partial class Login : System.Web.UI.Page { public string UserName { get; set; } public string AlertMsg { get; set; } protected void Page... 阅读全文
posted @ 2016-03-16 16:05 努力的活着_在人间 阅读(163) 评论(0) 推荐(0)

2016年3月2日

摘要: 3、进程:Process ->方法:1.获取操作系统进程:Process.GetProcess() 2.开始应用程序: Process.Start("程序名","要打开的文件"); 打开网页地址:Process.Start("iexplore.ext","htttp://www.baidu.com" 阅读全文
posted @ 2016-03-02 17:26 努力的活着_在人间 阅读(359) 评论(0) 推荐(0)

2016年3月1日

摘要: 反射 ->定义:通过一个程序集,获取程序集中包含的资源。动态获取程序集中的元数据的功能。 ->智能提示用到的就是反射。 方法都封装在 AssemblyInof.cs类中 ->好处:程序中只引用必须的程序集,减少程序的大小。 ->当有接口的时候可以添加代码。。 Type类。。 1、获取类的Type的方 阅读全文
posted @ 2016-03-01 21:34 努力的活着_在人间 阅读(253) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

导航