摘要: ##报表####一、 新建一个报表文件.rdlc文件######具体步骤:1. 写好表头2. 建好要打印的列3. 指定要显示的数据集的列名(需要函数的右键选择表达式)4. 添加行的时候搞明白组内组外> - 组内是没读取数据一条都会显示添加的行> - 组外是不管有几条数据都只显示一次####二、 (需... 阅读全文
posted @ 2015-06-23 11:24 冷先生 阅读(123) 评论(0) 推荐(0) 编辑
摘要: ###总结的非常不错的asp.net学习资料,方便想自学asp.net的朋友如果你已经有较多的面向对象开发经验,跳过以下这两步: 第一步 掌握一门.NET面向对象语言,C#或VB.NET 我强烈反对在没系统学过一门面向对象(OO)语言的前提下去学ASP.NET。 ASP.NET是一个全面向对象的... 阅读全文
posted @ 2015-06-08 10:29 冷先生 阅读(106) 评论(0) 推荐(0) 编辑
摘要: ##文件上传实例####![](http://images201506.cnblogs.com/blog201506/725488/201506/021308285232034.png) using System; using System.Collections.Generic; ... 阅读全文
posted @ 2015-06-02 13:09 冷先生 阅读(147) 评论(0) 推荐(0) 编辑
摘要: ###文件上传:######把相对路径变成绝对路径。> string absolutePath = Server.MapPath(relativePath);######FileUpload控件: > 属性: > FileName:文件名 > HasFile:bool 是否选中了文件... 阅读全文
posted @ 2015-06-02 10:31 冷先生 阅读(158) 评论(0) 推荐(0) 编辑
摘要: ##LinQ to SQL#####LinQ - 集成化查询语言。> LinQ to SQL ——查询SQLServer数据库> LinQ to Object —— 查询内存中的集合#####ORM思想:O - R - M1. Object 对象——实体类 1. Relation 关系数据库—... 阅读全文
posted @ 2015-06-02 10:25 冷先生 阅读(196) 评论(0) 推荐(0) 编辑
摘要: ##验证:###一、RequiredFieldValidator:非空验证- ErrorMessage:验证出错时显示的错误信息 - ControlToValidate:要验证的控件ID - Display:呈现模式。Static-静止,不显示也会占空间。Dynamic-动态,不显示则不占空间 ... 阅读全文
posted @ 2015-06-01 16:59 冷先生 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 加载数据库中的数据,如果内容非常多,就显示出滚动条。类似于QQ好友列表的效果。1.先放一个Panel在窗体中Dock布局一下。2.在这个Panel里面放一个FlowLayoutPanel,设置它从上到下流式布局。3.外面的Panel需设置AutoScroll=true .超出范围就显示滚动条。4.里... 阅读全文
posted @ 2015-05-18 09:48 冷先生 阅读(186) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-05-18 09:45 冷先生 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 对话框:一、提示对话框:DialogResult result = MessageBox.Show("提示文字","标题文字",按钮设置,图标设置)if(result == 枚举){}二、其它对话框:(一)ColorDialog:1、属性:Color - 选中的颜色。2、方法:ShowDialog(... 阅读全文
posted @ 2015-05-15 09:12 冷先生 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Data.SqlClient; 6 using ... 阅读全文
posted @ 2015-05-15 09:09 冷先生 阅读(446) 评论(0) 推荐(0) 编辑