只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-05-12 10:02 花开见我 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 页面的组成--aspx:界面--aspx.cs:代码页面文件之间的关联Page指令--CodeFile:后台代码文件--Inherits:继承(基类)页面的生命周期--Init:初始化--Load:加载事件--Control Event:控件事件--PreRender:预呈现--UnLoad:卸载I... 阅读全文
posted @ 2014-06-27 22:00 花开见我 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 委托:对方法的绑定事件和委托的步骤1.定义委托public delegate 返回值 委托名(参数);2.基于委托定义事件public event 委托名 事件名;3.注册事件对象.事件名 += new 委托(方法);4.触发事件 先检查事件是否有人注册,有则触发 if (事件名 != null... 阅读全文
posted @ 2014-06-27 21:55 花开见我 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 服务器控件生命周期 阅读全文
posted @ 2014-06-27 21:49 花开见我 阅读(191) 评论(0) 推荐(0) 编辑
摘要: private string fileName = HttpContext.Current.Server.MapPath("~/Student.xml");protected void Page_Load(object sender, EventArgs e){if (!IsPostBack){Ge... 阅读全文
posted @ 2014-06-27 21:48 花开见我 阅读(156) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Reflection;namespace Data_Helper{ ... 阅读全文
posted @ 2014-06-27 21:44 花开见我 阅读(302) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Data.SqlClient;using System.Linq;using System.... 阅读全文
posted @ 2014-06-27 21:43 花开见我 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 组成--数据集(内存中的数据库) --DataSet数据集 --DataTable数据表 --DataColumn数据列 --DataRow数据行 --DataView数据视图--NET数据提供程序 --Connection连接(程序和数据库之间的桥梁) --Open/... 阅读全文
posted @ 2014-06-27 21:37 花开见我 阅读(281) 评论(0) 推荐(0) 编辑
摘要: List allUsers = new List();SqlConnection conn = new SqlConnection(连接字符串);SqlCommand cmd = new SqlCommand("SELECT语句",conn);conn.Open();using(SqlDataRea... 阅读全文
posted @ 2014-06-27 21:35 花开见我 阅读(312) 评论(0) 推荐(0) 编辑
摘要: // 产生连接字符串string connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=student.xls;"+ "Extended Properties='Excel 8.0;HDR=YES;IMEX=1'";// 定义SQLst... 阅读全文
posted @ 2014-06-27 21:32 花开见我 阅读(157) 评论(0) 推荐(0) 编辑