上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 49 下一页
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;/* 课前说明 * 内容: 掌握基于ASP.Net的web开发,ASP.Net内部原理,状态管理(Cookie,Session,ViewState等) * 普通ASP.net控件,数据验证 母版 ListView/Repeater等数据绑定控件 AJAX, 缓存 Membership 导航 自定义控件等 * * 目录: 能够使用A. 阅读全文
posted @ 2012-03-18 23:18 简单--生活 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 不得不自已写一个.XML的操作一直没有用过.下面是自己搜集的XML操作类DOMDocument相关的内容.属性:Attributes 存储节点的属性列表(只读)childNodes 存储节点的子节点列表(只读)dataType 返回此节点的数据类型Definition 以DTD或XML模式给出的节点的定义(只读)Doctype 指定文档类型节点(只读)documentElement 返回文档的根元素(可读写)firstChild 返回当前节点的第一个子节点(只读)Implementation 返回XMLDOMImplementation对象lastChild 返回当前节点最后一个子节点(只读) 阅读全文
posted @ 2012-03-12 18:14 简单--生活 阅读(239) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using _21类型化DataSet_2.DataSet1TableAdapters;using System.Data.SqlClient;/* 弱类型DataSet的缺点 * 只能通过列名引用,dataset.Table[0].Rows[0] 阅读全文
posted @ 2012-03-04 23:40 简单--生活 阅读(692) 评论(2) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;/* 可空数据类型 * C#中值类型(int, Guid, bool等)是不可以为空的,int i=null是错误的,因此int, bool等这些类型不能表示数据库中的"Null" * 因此C#提供了"可空类型&quo 阅读全文
posted @ 2012-03-04 23:39 简单--生活 阅读(384) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;using System.Configuration;using _17DateStr.DataSet1TableAdapters;/* DataSet * 每次读取的数据都创建连接,执行Co 阅读全文
posted @ 2012-03-04 23:38 简单--生活 阅读(384) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Configuration;using System.Data.SqlClient;/* 将连接字符串写在代码中的缺点,多次重复,违反了DRY(Don'i Repeat Yourself)原则,如果要修改连接字符串 阅读全文
posted @ 2012-03-04 23:37 简单--生活 阅读(250) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO;using System.Data.SqlClient;namespace _8_手机归属地查询案例{ public partial class Form1 : Form { public ... 阅读全文
posted @ 2012-03-04 15:56 简单--生活 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 这个错误其实是我自己的Sql server没有启动,我还找了一会儿才找到,真笨样,还得多努力! 阅读全文
posted @ 2012-03-04 15:44 简单--生活 阅读(226) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Windows.Forms;using System.Data.SqlClient;using System.IO;namespace _8登陆练习操作{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void SetErrorTimes() { using (SqlConnection con... 阅读全文
posted @ 2012-03-03 21:51 简单--生活 阅读(320) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;/* SQL注入漏洞攻周 * 登陆判断: select * FROM t_users where UserName=... and Password=...,将参数拼到SQL语句中 * 构造恶意的Password: 1' or '1'='1 * 防范注入漏洞攻击的方式:不使用SQL语句拼接,通过参数赋值 * * 查询参数 * SQL语句使用@Us 阅读全文
posted @ 2012-03-03 21:50 简单--生活 阅读(289) 评论(0) 推荐(0) 编辑
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 49 下一页
简单--生活(CSDN)