xiaowei-blog

导航

随笔分类 -  .net(c#)开发

上一页 1 2

打印水晶报表1
摘要://1。 appConfig配置信息: operate.OpenConnection();//打开数据库连接 //>>>(1)报表字段对应数据集字段 //Crystal_userPizeByDataSource userPrize = new Crystal_userPizeByDataSourc... 阅读全文

posted @ 2014-12-16 12:28 xiaowei-blog 阅读(118) 评论(0) 推荐(0)

.net操作cookies
摘要:1.创建Cookies方法if (Request.Cookies["Products"] == null) //判断Products(cookies)是否存在 { HttpCookie oCookie = new HttpCookie("Products"); oCookie.Expires = DateTime.Now.AddHours(24); //设置Products(cookies)过去时间 oCookie.Value = pro_id.ToString(); Response.Cookies.Add(oCookie); } else { boo 阅读全文

posted @ 2014-03-26 22:52 xiaowei-blog 阅读(132) 评论(0) 推荐(0)

深入浅出----C#中委托与事件
摘要:在c#中,委托的最基本的一个用途就是用于事件处理。事件就是对象发送的消息,以发信号通知操作的发生。通俗的讲 ,就是,事件就是程序中产生 一件需要处理的信号。事件处理步骤:1.定义事件的委托。要使用事件,首先要给它创建一个委托。格式:delegate void ***EventHander(object sender, ***EventArgs);2.EventArgs类此类用于派生出一个新类,这个新类定义事件所需要用到的传递变量。格式: public class ***EventArgs: EventArgs{public ***EventArgs(type name){//设置所要用到的传递 阅读全文

posted @ 2013-05-12 17:59 xiaowei-blog 阅读(191) 评论(0) 推荐(0)

上一页 1 2

欢 迎 大 家光 临 我 的 个 人 博 客 !