<?xml version="1.0" encoding="utf-8"?><rss version="2.0">
<channel>
<title><![CDATA[Asp学习资料]]></title>
<link>http://blog.pfan.cn/wangsdong</link>
<description>编程爱好者博客</description>
<language>zh-cn</language>
			<item>
		<title><![CDATA[电热水袋爆炸炸伤女子右腿，热水袋要选择安全防爆型热水袋]]></title>
		<link>http://blog.pfan.cn/wangsdong/54359.html</link>
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;大乔-阿Jo：刚才朋友来电话，说刚热水袋充电时爆炸，腿上的皮炸没了，问我怎么办！现在正在去医院途中……，昨日记者联系了这条微博的发布者“大乔-阿Jo”，该网友告诉记者，上个月，她的朋友在地摊上购买的这种热水袋。这种地摊上热水袋根本就不符合安全标准，基本是三无产品，容易产生安全隐患。先择热水袋要从正规商家购买，要选择安全防爆型的热水袋，给热水袋充电的时候，尽量远离人的身体，多方面做到安全保障。
&nbsp;&nbsp;&nbsp;&nbsp;瑞佳热水袋采用新材料，新工艺，美观实用；使用新技术储能 发热，加热升温迅速，取暖保温持久。瑞佳热水袋在安全性方面有三防：
		
		
			1、防爆
		
		
			&nbsp;&nbsp;&nbsp;&nbsp;内部设有防爆结构，在温度装置失灵的情况下，随着热身膨胀到一定的程序，电极停止电解，阻止了袋身的膨胀，杜绝爆炸，确保使用安全。
		
		
			2、防漏电
		
		
			&nbsp;&nbsp;&nbsp;&nbsp;三层套色滑盖插座，自动温控，自动断电，避免过热。
		
		
			3、防漏水
		
		
			&nbsp;&nbsp;&nbsp;&nbsp;暖手袋有包边，6层防护，双层内胆，安全可靠。]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2013-12-06 11:45:00</pubDate>
		</item>
				<item>
		<title><![CDATA[asp开发工具5.0版（asp代码生成器）新功能介绍]]></title>
		<link>http://blog.pfan.cn/wangsdong/54299.html</link>
		<description><![CDATA[经过一段时间的开发，asp开发工具5.0版（asp代码生成器）即将发布，在这里先介绍一下asp开发工具5.0版新功能：


	1、新增皮肤


	&nbsp;&nbsp;&nbsp;&nbsp; 让工具美化了，彻底摆脱了灰色的外观


	
2、xml文件用于存储连接信息


	&nbsp;&nbsp;&nbsp; 使用xml文件作为保存连接信息，解决了没有安装office软件带来不能保存连接信息的bug


	
3、加密功能


	&nbsp;&nbsp;&nbsp; 对sql数据库连接信息中的密码实现了加密功能，保护了数据库的密码信息。


	
4、增加对sql2008数据库的支持



	
5、增加生成asp类，以及生成类的增、删、改、查功能


	
6、增加函数查询功能


	&nbsp;&nbsp;&nbsp;&nbsp; 可按照“函数名”和“函数功能”两种方式查询相应的函数，可以在这里查询到一些asp自带的函数，以及一些开发过程中常用的自定义函数。


	
7、增加了“加入托盘”功能


	&nbsp;&nbsp;&nbsp; 让你在不使用的时候，将asp开发工具5.0缩小成一个图标，放到任务栏右下角上去；当需要的时候，只要点击这个图片即可打开。


	
8、增加字段名“全选”和“全不选”功能


	&nbsp;&nbsp;&nbsp;&nbsp; 对字段名进行“全选”和“全不选”功能，有利于对表的字段名选择。


	
9、&nbsp;增加“帮助”


	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 图文并茂介绍asp开发工具5.0在实际工作中的使用。


	
10、增加“意见反馈”


	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 收集asp开发人员实际使用asp开发工具5.0的开发过程中遇到的bug，用于下一个版本的升级。


	&nbsp;


	11、去掉生成函数代码功能


	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由于思考再三，觉得生成函数代码和普通的代码是一样的，只是一个放在函数内，一个是单独的一段代码，觉得两者太相]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2013-09-23 11:52:00</pubDate>
		</item>
				<item>
		<title><![CDATA[jquery&nbsp;定时器的使用]]></title>
		<link>http://blog.pfan.cn/wangsdong/54078.html</link>
		<description><![CDATA[jquery&nbsp;定时器的使用]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2013-01-09 16:17:00</pubDate>
		</item>
				<item>
		<title><![CDATA[C#中list&lt;T&gt;的用法实例]]></title>
		<link>http://blog.pfan.cn/wangsdong/54077.html</link>
		<description><![CDATA[C#中list&lt;T&gt;的用法实例]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2013-01-09 16:16:00</pubDate>
		</item>
				<item>
		<title><![CDATA[C#利用Newtonsoft.Json.dll读取json字符串实例]]></title>
		<link>http://blog.pfan.cn/wangsdong/54074.html</link>
		<description><![CDATA[C#利用Newtonsoft.Json.dll读取json字符串实例]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2013-01-08 09:29:00</pubDate>
		</item>
				<item>
		<title><![CDATA[C#开发过程中的三种注释方法]]></title>
		<link>http://blog.pfan.cn/wangsdong/54073.html</link>
		<description><![CDATA[C#开发过程中的三种注释方法]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2013-01-08 09:28:00</pubDate>
		</item>
				<item>
		<title><![CDATA[SQL2005使用identity_insert向自动增量字段中写入内容]]></title>
		<link>http://blog.pfan.cn/wangsdong/53411.html</link>
		<description><![CDATA[SQL2005以前的数据库是不允许向自动增量字段中写入内容的，ACCESS也不行，但在SQL2005开始，就可以向自动增量字段写入内容了，需要使用SQL2005提供的identity_insert来实现。

功能：SQL2005中使用identity_insert来修改自动增量字段
开发：wangsdong
来源：www.aspbc.com
原创文章，转载请保留此信息。

一、复制旧表中的数量到新表中，保持ID不变
假设要将某一表中的数据复制到另一表中去，但要保持ID不变。这个要求主要用于数据库分表，如由于用户表中数据量大，需要将一些很久不登录的用户放到另外一张表中去存放，以减少经常活动的表，以达到登录速度快。假设用户表USER结构：userid（自动增量字段）,username,userpassword,LastLogintime，分表是OLD_USER表，结构也是userid（自动增量字段）,username,userpassword,LastLogintime，使用的sql语句如下：
set identity_insert OLD_USER on 
insert OLD_USER(userid,username,userpassword,LastLogintime) select userid,username,userpassword,LastLogintime from USER where LastLogintime&lt;'2010-01-01'
set identity_insert OLD_USER off

二、直接向新表中插入一条指定ID的记录
这种情况下，这条指定的ID，新表中一定要没有才可以。假设表名OLD_USER表，结构也是userid（自动增量字段）,username,userpassword,LastLogintime，使用的sql语句如下：
set identity_insert OLD_USER on 
insert OLD_USER(userid,username,userpassword,LastLogintime) VALUES(7,'新用户','新密码','2012-04-09 08:30:30')
set identity_insert OLD_USER off
这句中的7就是指定的]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2012-04-10 09:05:00</pubDate>
		</item>
				<item>
		<title><![CDATA[asp.net三层架构实例]]></title>
		<link>http://blog.pfan.cn/wangsdong/52908.html</link>
		<description><![CDATA[什么是VS三层架构？如何实现vs三层架构？这是用一个vs2010+sql server2005来举个例子，其他版本的VS和sql server都可以，暂时不建设使用access数据库。
//功能：VS三层架构实例--显示某张表中的所有记录
//来源：www.aspbc.com
//作者：wangsdong
//原创文章，转载请保留此信息
具体步骤：
1、打开sql server2005，在里面创建数据库test2,然后在数据库创建users表,里面有三个字段id(自动增加),username(varchar(50)),password(varchar(50))，然后使用insert插入几条记录。 
2、创建一个文件夹，用来存储该程序，假设我放在e:\test文件夹下。 
3、打开VS2010，创建解决方案：
步骤：文件--新建--项目，在弹出来的“新建项目”对话框中，已安装的模板中选择“其他项目类型”--“Visual Studio解决方案”，然后在右边选择“空白解决方案”，其次在名称中输入“Solution1”,然后在位置中选择上面的新建的文件夹：e:\test，然后点击“确定”。
&nbsp;

4、创建一个ASP.NET Web应用程序，用来显示users中的所有内容。
步骤：文件--新建--项目，在弹出来的“新建项目”对话框中，已安装的模板中选择“Visual C#”--“ASP.NET Web应用程序”，名称处取名叫“myweb”,位置选择:e:\test\Solution1,解决方案中选择“添加到解决方案”--然后点击“确定”。

此时，右边的解决方案资源管理器中多出了一个myweb，里面有许多文件。这里双击里面的web.config文件，向里面添加数据库连接代码。将原来里面的代码
&lt;connectionStrings&gt;
&lt;add name="ApplicationServices"
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
providerName="System.Dat]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2011-11-03 14:34:00</pubDate>
		</item>
				<item>
		<title><![CDATA[DotNet中三种方法给下拉框赋值]]></title>
		<link>http://blog.pfan.cn/wangsdong/52881.html</link>
		<description><![CDATA[DotNet网络编程开发中，经常要用到给下拉框赋值，这里介绍三种方法给下拉框赋值，大家根据自己的习惯选择自己喜欢的方法
1、创建一个解决方案solution3
&nbsp;&nbsp; 文件--项目--其他项目类型--Visual Studio 解决方案，右边选择“空白解决方案”，下面名称中输入你的项目名称（solution3），位置中选择项目保存的位置。请记住这个步骤，以后不再介绍这个步骤了。
2、再创建一个asp.net web 应用名称
&nbsp;&nbsp; 文件--项目--Visual C#(展开)--Web，右边选择“ASP.NET Web 应用程序”，下面名称中输入你的程序名称（webApplication），解决方案中选择“添加到解决方案”（这里需要注意一下哦，别选错了），这时位置中的地址就会自动选好了。请记住这个步骤，以后也不再介绍这个步骤了。&nbsp; 
3、这时右边的解决方案资源管理器中就出现了许多文件，这时，双击里面的Default.aspx，左边出 现了aspx的html代码，我们点击下面的“设计”，进入设计编辑。 
/* 功能：C#中给下拉框赋值&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */
/* 来源: http://www.aspbc.com */
/* 开发：wangsdong&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */
/* 原创文章，转载请保留此信息 */ 
下面我们使用三种方法做个年份下拉框，即1980年～2011年
第一种：直接给ListBox组件赋值（服务器组件方法）
在左边的工具栏中--标准--找到ListBox组件，把它拖到设计中。这时设计中有了一个框，并不是我们看到的那种下拉框，我们要对它进行一些修改。右击这个控件--属性，右边出现属性窗口，在里面我们先给这个控件起个名字，找到ID属性，删除原来的名称ListBox1，改成List1。然后找到Rows属性，把里面的4改成1即可，这个就成了我们熟悉的下拉框了。
现在我们给他赋值：在解决方案资源管理器，展开Default.aspx，双击Default.aspx.cs文件在]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2011-10-24 09:42:00</pubDate>
		</item>
				<item>
		<title><![CDATA[jquery实现图片动画的例子]]></title>
		<link>http://blog.pfan.cn/wangsdong/52035.html</link>
		<description><![CDATA[jquery实现图片动画的例子
jquery实现的图片动画效果的例子
jquery无刷新修改产品价格和数量
jquery框架操作checkbox控件
javascript:jquery中文乱码的解决方法
使用jquery实现ajax无刷新用户名检测]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2010-11-19 12:35:00</pubDate>
		</item>
				<item>
		<title><![CDATA[asp开发工具2.5版]]></title>
		<link>http://blog.pfan.cn/wangsdong/52034.html</link>
		<description><![CDATA[asp开发工具2.5版]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2010-11-19 12:34:00</pubDate>
		</item>
				<item>
		<title><![CDATA[javascript游戏代码--盒子游戏]]></title>
		<link>http://blog.pfan.cn/wangsdong/50514.html</link>
		<description><![CDATA[javascript游戏代码--盒子游戏]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2010-01-10 17:19:00</pubDate>
		</item>
				<item>
		<title><![CDATA[拼图游戏-javascript游戏]]></title>
		<link>http://blog.pfan.cn/wangsdong/50513.html</link>
		<description><![CDATA[拼图游戏-javascript游戏]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2010-01-10 17:19:00</pubDate>
		</item>
				<item>
		<title><![CDATA[asp无限级分类加收缩伸展功能]]></title>
		<link>http://blog.pfan.cn/wangsdong/50512.html</link>
		<description><![CDATA[asp无限级分类加收缩伸展功能]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2010-01-10 17:18:00</pubDate>
		</item>
				<item>
		<title><![CDATA[js和CSS实现隔行换色的几种方法]]></title>
		<link>http://blog.pfan.cn/wangsdong/47243.html</link>
		<description><![CDATA[点击查看详情：js和CSS实现隔行换色的几种方法]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2009-08-31 10:27:00</pubDate>
		</item>
				<item>
		<title><![CDATA[客服代码与W3C标准冲突的解决方法]]></title>
		<link>http://blog.pfan.cn/wangsdong/47242.html</link>
		<description><![CDATA[点击查看详情：客服代码与W3C标准冲突的解决方法]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2009-08-31 10:23:00</pubDate>
		</item>
				<item>
		<title><![CDATA[css实现页面上小版块的布局]]></title>
		<link>http://blog.pfan.cn/wangsdong/42213.html</link>
		<description><![CDATA[css实现页面上小版块的布局
&nbsp;]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2009-04-17 15:46:00</pubDate>
		</item>
				<item>
		<title><![CDATA[Asp缓存技术原理]]></title>
		<link>http://blog.pfan.cn/wangsdong/42211.html</link>
		<description><![CDATA[Asp缓存技术原理]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2009-04-17 15:45:00</pubDate>
		</item>
				<item>
		<title><![CDATA[asp实现静态页面上加自定义的if语句]]></title>
		<link>http://blog.pfan.cn/wangsdong/40750.html</link>
		<description><![CDATA[asp实现静态页面上加自定义的if语句]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2009-02-07 10:37:00</pubDate>
		</item>
				<item>
		<title><![CDATA[access中sql实现行列转换]]></title>
		<link>http://blog.pfan.cn/wangsdong/39963.html</link>
		<description><![CDATA[access中sql实现行列转换]]></description>
		<author><![CDATA[wangsdong]]></author>
		<pubDate>2008-12-18 11:05:00</pubDate>
		</item>
		</channel>
</rss>