<?xml version="1.0" encoding="utf-8"?><rss version="2.0">
<channel>
<title><![CDATA[旧日的足迹]]></title>
<link>http://blog.pfan.cn/jixian</link>
<description>编程爱好者博客</description>
<language>zh-cn</language>
			<item>
		<title><![CDATA[C++中如何去掉std::string对象的首尾空格]]></title>
		<link>http://blog.pfan.cn/jixian/36400.html</link>
		<description><![CDATA[转自http://www.cnblogs.com/chenrj/archive/2006/11/14/560455.html
&nbsp;
/***********write by myself***********//***********begin test file***********/#include &lt;iostream&gt;#include &lt;string&gt;
int main(){&nbsp;std::string str1 = "&nbsp;&nbsp;&nbsp;hello world!&nbsp;&nbsp; ";&nbsp;std::string trimstring = " ";&nbsp;std::cout &lt;&lt; "str = \"" &lt;&lt; str1 &lt;&lt; "\"" &lt;&lt; std::endl;&nbsp;std::cout &lt;&lt; "str.find_first_of(' ')&nbsp;&nbsp;&nbsp;&nbsp; : " &lt;&lt; str1.find_first_of(trimstring)&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; std::endl;&nbsp;std::cout &lt;&lt; "str.find_first_not_of(' ') : " &lt;&lt; str1.find_first_not_of(trimstring) &lt;&lt; std::endl;&nbsp;std::cout &lt;&lt; "str.find_last_of(' ')&nbsp;&nbsp;&nbsp;&nbsp; : " &lt;&lt; str1.find_last_of(trimstring)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; std::endl;&nbsp;std::cout &lt;&lt; "str.find_last_not_of(' ')&nbsp; : " &lt;&lt; str1.find_last_not_of(trimstring)&nbsp; &lt;&lt; std::endl;&nbsp;str1.erase(str1.find]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2008-07-01 21:13:00</pubDate>
		</item>
				<item>
		<title><![CDATA[RegularExpressionValidator控件中正则表达式用法～&nbsp;]]></title>
		<link>http://blog.pfan.cn/jixian/34328.html</link>
		<description><![CDATA[同样参考清清月儿的博客．谢谢清清月儿前辈．RegularExpressionValidator控件中正则表达式用法验证数字：



只能输入1个数字 

表达式
^\d$

描述
匹配一个数字

匹配的例子
0,1,2,3

不匹配的例子





只能输入n个数字 

表达式
^\d{n}$&nbsp; 例如^\d{8}$

描述
匹配8个数字

匹配的例子
12345678,22223334,12344321

不匹配的例子





只能输入至少n个数字 

表达式
^\d{n,}$ 例如^\d{8,}$

描述
匹配最少n个数字

匹配的例子
12345678,123456789,12344321

不匹配的例子





只能输入m到n个数字 

表达式
^\d{m,n}$ 例如^\d{7,8}$

描述
匹配m到n个数字

匹配的例子
12345678,1234567

不匹配的例子
123456,123456789




只能输入数字 

表达式
^[0-9]*$

描述
匹配任意个数字

匹配的例子
12345678,1234567

不匹配的例子
E,清清月儿,http://blog.csdn.net/21aspnet




只能输入某个区间数字 

表达式
^[12-15]$

描述
匹配某个区间的数字

匹配的例子
12,13,14,15

不匹配的例子





只能输入0和非0打头的数字 

表达式
^(0|[1-9][0-9]*)$

描述
可以为0，第一个数字不能为0，数字中可以有0

匹配的例子
12,10,101,100

不匹配的例子
01,清清月儿,http://blog.csdn.net/21aspnet




只能输入实数 

表达式
^[-+]?\d+(\.\d+)?$

描述
匹配实数

匹配的例子
18,+3.14,-9.90

不匹配的例子
.6,33s,67-99




只能输入n位小数的正实数 

表达式
^[0-9]+(.]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2008-04-19 23:48:00</pubDate>
		</item>
				<item>
		<title><![CDATA[MSDTC服务则卸载\重新安装]]></title>
		<link>http://blog.pfan.cn/jixian/34117.html</link>
		<description><![CDATA[由于"IIS500"问题 &nbsp; &nbsp; 在注册表里删除了 &nbsp; MSDTC &nbsp; 服务 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 现在要怎么安装啊 &nbsp; ~~~~~ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MSDTC服务不能用了~ &nbsp; &nbsp; &nbsp; &nbsp; 最好能给出详细点的意见 &nbsp; &nbsp; &nbsp; 谢谢~ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; __________________ISS500错误解决_______________________________ &nbsp; &nbsp; "1、删除注册表中的键： &nbsp; &nbsp; &amp;#8226; &nbsp; HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSDTC &nbsp; &nbsp; &nbsp; &amp;#8226; &nbsp; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC &nbsp; &nbsp; &nbsp; &amp;#8226; &nbsp; HKEY_CLASSES_ROOT\CID &nbsp; &nbsp; &nbsp; 2、停止MSDTC服务：net &nbsp; stop &nbsp; msdtc &nbsp; &nbsp; 3、卸载MSDTC服务：msdtc &nbsp; -uninstall &nbsp; &nbsp; 4、重新安装MSDTC服务：msdtc &nbsp; -install"&nbsp;&nbsp;]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2008-04-13 01:34:00</pubDate>
		</item>
				<item>
		<title><![CDATA[SQL&nbsp;Server&nbsp;2000安装出现挂起的解决]]></title>
		<link>http://blog.pfan.cn/jixian/34116.html</link>
		<description><![CDATA[来自：http://jamietea.blogbus.com/logs/8148895.html
安装SQL Server2000的时候，安装程序提示我安装程序被挂起，让我重新启动电脑，但我即便是重新启动了再次安装，SQL Server2000的安装程序依旧提示我这个错误。看来重起并不能解除被挂起的安装程序。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 查阅了资料，得知要解决这个问题需要删除注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager下的PendingFileRenameOperations子键。* 注意PendingFileRenameOperations在右边的框内，搜索一般找不到！按照名称来理解，HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager应该存放的是当前系统会话的快照，而PendingFileRenameOperations记录的是一个未成功进行的文件更名操作，SQL Server2000在安装时可能会使用这个键值，记录在安装过程中对临时文件的操作，如果SQL Server2000在安装进程启动时就发现这个键值存在，它就认为上一个安装程序没有完成，从而拒绝继续自身的安装进程。而按照道理，任何一个改写过此键值的程序都应当在结束或者系统重新启动的时候将这个键值删除，但如果由于种种原因这个操作没有被进行的话，那么SQL Server2000自然会得出错误的结论。
1、点击“开始》运行”，输入“regedit”，打开注册表 
2、找到目录HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager 
3、删除其中的“PendingFileRenameOperations”(前几天，有好几个朋友找错了此文件，在这里不得不说明一下，PendingFileRenameOperations文件位于Session Manager右侧，即当你点击Session Manager时，在右边就可以看到了) 
4、关闭注册表 
5、重新开始安装SQL Se]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2008-04-13 01:03:00</pubDate>
		</item>
				<item>
		<title><![CDATA[数据类型转换问题]]></title>
		<link>http://blog.pfan.cn/jixian/33756.html</link>
		<description><![CDATA[数据库表 table，有一个字段 qty（float类型）
用datareader读取后，当直接强制转换float类型时报错，（float）datareader["qty"]，
&nbsp;要先转化为string类型，再转化为float类型，float.parse(datareader["qty"].tostring())
&nbsp;而int类型没这样的问题。
&nbsp;不知道为什么？]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2008-03-31 22:38:00</pubDate>
		</item>
				<item>
		<title><![CDATA[Petshop4.0&nbsp;中注册时出现Please&nbsp;enter&nbsp;a&nbsp;more&nbsp;sec]]></title>
		<link>http://blog.pfan.cn/jixian/33656.html</link>
		<description><![CDATA[http://www.cnblogs.com/jiangfl/archive/2007/03/07/666542.html
Petshop4.0 中注册时出现Please enter a more secure password.的解决方法：在网上找到答案：

http://shareex.spaces.live.com/
查看C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config
中membership/providers/add 属性inRequiredNonalphanumericCharacters="1"知道密码中至少有一个非alpha字符，例如要出现一个@之类的
http://access911.net/getnews/doc1.asp?mode=a&amp;aid=4949607这个主要是machine.config配置文件下面的&lt;membership...&gt;&lt;providers...&gt; minRequiredPasswordLength="7",minRequiredNonalphanumericCharacters="1" 这两个项要设置第一项要求了至少密码长度为7,第二项是要求了至少一个非字母数字字符.如果不更改设置，则在密码中包含以下字符"!@#$%^&amp;*()"等中的一个可以解决。或者在web.config文件中更改设置。


&lt;connectionStrings&gt;&nbsp;&nbsp;&lt;add&nbsp;name="MySqlConnection"&nbsp;connectionString="Data&nbsp;Source=MySqlServer;Initial&nbsp;Catalog=aspnetdb;Integrated&nbsp;Security=SSPI;"&nbsp;/&gt;&lt;/connectionStrings&gt;&lt;system.web&gt;..&lt;membership&nbsp;defaultProvider="SqlProvider"&nbsp;userIsOnlineTimeWindow="15"&gt;&nbsp;&nbsp;&nbsp;&nbs]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2008-03-29 23:59:00</pubDate>
		</item>
				<item>
		<title><![CDATA[服务器&nbsp;上的&nbsp;MSDTC&nbsp;不可用&nbsp;]]></title>
		<link>http://blog.pfan.cn/jixian/33655.html</link>
		<description><![CDATA[&nbsp;
服务器 上的 MSDTC 不可用 
问题解决:在CMD下运行"net &nbsp; start &nbsp; msdtc"开启服务后正常。]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2008-03-29 23:50:00</pubDate>
		</item>
				<item>
		<title><![CDATA[StringCollection&nbsp;FAQ&nbsp;[C#,&nbsp;BCL]]]></title>
		<link>http://blog.pfan.cn/jixian/30869.html</link>
		<description><![CDATA[转自http://www.cnblogs.com/allenlooplee/archive/2005/03/19/121686.html
Q：如何使用StringCollection[1]？
A：通常我们有三种方法来访问StringCollection里面的string元素：


//&nbsp;Code&nbsp;#01StringCollection&nbsp;sc&nbsp;=&nbsp;new&nbsp;StringCollection();sc.AddRange(textBox1.Lines);//&nbsp;StringCollection&nbsp;used&nbsp;together&nbsp;with&nbsp;StringEnumerator.StringEnumerator&nbsp;se&nbsp;=&nbsp;sc.GetEnumerator();while&nbsp;(se.MoveNext()){&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(se.Current);}//&nbsp;'foreach'&nbsp;syntax&nbsp;used.foreach(string&nbsp;str&nbsp;in&nbsp;sc){&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(str);}//&nbsp;'for'&nbsp;syntax&nbsp;used.for(int&nbsp;i&nbsp;=&nbsp;0;&nbsp;i&nbsp;&lt;&nbsp;sc.Count;&nbsp;i++){&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(sc[i]);}

Q：与ArrayList相比，StringCollection有什么优势？
A：首先让我们来看看如下代码：


//&nbsp;Code&nbsp;#02//&nbsp;StringCollection&nbsp;used&nbsp;for&nbsp;Strings&nbsp;operation.StringCollection&nbsp;sc&nbsp;=&nbsp;new&nbsp;StringCollection();sc.AddRange(]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-11-12 11:38:00</pubDate>
		</item>
				<item>
		<title><![CDATA[单件模式例子]]></title>
		<link>http://blog.pfan.cn/jixian/30847.html</link>
		<description><![CDATA[转自http://terrylee.cnblogs.com/archive/2005/12/09/293509.html
using System;using System.Collections.Generic;using System.Text;using System.Threading;
namespace SingletonCounter{&nbsp;&nbsp;&nbsp; ///&lt;summary&gt;&nbsp;&nbsp;&nbsp; ///功能：简单计数器的单件模式&nbsp;&nbsp;&nbsp; ///编写：XXX&nbsp;&nbsp;&nbsp; ///日期:2007年11月10日&nbsp;&nbsp;&nbsp; ///&lt;/summary&gt;
&nbsp;&nbsp;&nbsp; public class CounterSingleton&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ///存储唯一的实例&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static CounterSingleton uniCounter = new CounterSingleton();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ///存储计数值&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private int totNum = 0;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private CounterSingleton()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ///线程延迟2000毫秒&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thread.Sleep(2000);&nbsp;&nbsp;&nbsp;&nbs]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-11-10 12:44:00</pubDate>
		</item>
				<item>
		<title><![CDATA[label（c#winform）链接]]></title>
		<link>http://blog.pfan.cn/jixian/30725.html</link>
		<description><![CDATA[&nbsp; private void label1_Click(object sender, EventArgs e)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Diagnostics.Process.Start("IEXPLORE.EXE", "http://www.baidu.com");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-11-03 20:42:00</pubDate>
		</item>
				<item>
		<title><![CDATA[调用可扩展对象&nbsp;xml]]></title>
		<link>http://blog.pfan.cn/jixian/30724.html</link>
		<description><![CDATA[xml文件：
&lt;?xml version="1.0" encoding="utf-8" ?&gt;&lt;circles&gt;&nbsp; &lt;circle&gt;&nbsp;&nbsp;&nbsp; &lt;radius&gt;15&lt;/radius&gt;&nbsp; &lt;/circle&gt;&nbsp; &lt;circle&gt;&nbsp;&nbsp;&nbsp; &lt;radius&gt;18&lt;/radius&gt;&nbsp; &lt;/circle&gt;&lt;/circles&gt;
xslt 文件
&lt;?xml version="1.0" encoding="UTF-8" ?&gt;&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:myns="urn:myobject"&gt;&nbsp; &lt;xsl:template match="circles/circle"&gt;&nbsp;&nbsp;&nbsp; &lt;xsl:copy&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:apply-templates/&gt;&nbsp;&nbsp;&nbsp; &lt;/xsl:copy&gt;&nbsp; &lt;/xsl:template&gt;&nbsp; &lt;xsl:template match="radius"&gt;&nbsp;&nbsp;&nbsp; &lt;circumference&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:value-of select="myns:getcircumference(.)"/&gt;&nbsp;&nbsp;&nbsp; &lt;/circumference&gt;&nbsp; &lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;
主程序
using System;using System.Collections.Generic;using System.Text;using System.Xml;using S]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-11-03 17:10:00</pubDate>
		</item>
				<item>
		<title><![CDATA[为样式表单传递参数&nbsp;xslt]]></title>
		<link>http://blog.pfan.cn/jixian/30723.html</link>
		<description><![CDATA[xml文件：
&lt;?xml version="1.0" encoding="utf-8" ?&gt;&lt;order&gt;&nbsp; &lt;book ISBN="10-861003-324"&gt;&nbsp;&nbsp;&nbsp; &lt;title&gt;the handmaid's tale&lt;/title&gt;&nbsp;&nbsp;&nbsp; &lt;price&gt;19.95&lt;/price&gt;&nbsp; &lt;/book&gt;&nbsp; &lt;cd ISBN="2-3631-4"&gt;&nbsp;&nbsp;&nbsp; &lt;title&gt;americana&lt;/title&gt;&nbsp;&nbsp;&nbsp; &lt;price&gt;16.95&lt;/price&gt;&nbsp; &lt;/cd&gt;&lt;/order&gt;
xslt文件：
&lt;?xml version="1.0" encoding="UTF-8" ?&gt;&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;&nbsp; &lt;xsl:param name="date"/&gt;&nbsp; &lt;xsl:template match="/"&gt;&nbsp; &lt;order&gt;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:value-of select="$date"/&gt;&nbsp;&nbsp;&nbsp; &lt;/date&gt;&nbsp;&nbsp;&nbsp; &lt;total&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:value-of select="sum(//price)"/&gt;&nbsp;&nbsp;&nbsp; &lt;/total&gt;&nbsp;&nbsp;&nbsp; &nbsp; &lt;/order&gt;&nbsp; &lt;/xsl:template&gt;&lt;/xsl:styles]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-11-03 16:38:00</pubDate>
		</item>
				<item>
		<title><![CDATA[获取属性集合xml]]></title>
		<link>http://blog.pfan.cn/jixian/30688.html</link>
		<description><![CDATA[using System;using System.Collections.Generic;using System.Text;using System.Xml;using System.Collections;
namespace namednodemap{&nbsp;&nbsp;&nbsp; class Program&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static void Main(string[] args)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XmlDocument doc = new XmlDocument();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doc.LoadXml("&lt;book genre='novel' publicationdate='1997'&gt;&lt;title&gt;pride and prejudice&lt;/title&gt;&lt;/book&gt;");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XmlAttributeCollection attrcoll = doc.DocumentElement.Attributes;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XmlAttribute attr = (XmlAttribute)attrcoll.GetNamedItem("genre");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attr.Value = "fiction";&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-11-02 15:52:00</pubDate>
		</item>
				<item>
		<title><![CDATA[SelectNodes]]></title>
		<link>http://blog.pfan.cn/jixian/30687.html</link>
		<description><![CDATA[using System;using System.Collections.Generic;using System.Text;using System.Xml;using System.Collections;
namespace SelectNodes{&nbsp;&nbsp;&nbsp; class Program&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static void Main(string[] args)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XmlDocument doc = new XmlDocument();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doc.Load(@"E:\c#\c#_windows程序设计学生成绩信息.xml");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XmlNodeList nodelist;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XmlElement root = doc.DocumentElement;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nodelist = root.SelectNodes("student/name");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (XmlNode name1 in nodelist)&nbsp;&nbsp;&]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-11-02 15:14:00</pubDate>
		</item>
				<item>
		<title><![CDATA[InnerXml&nbsp;OuterXml&nbsp;InnerText(xml)]]></title>
		<link>http://blog.pfan.cn/jixian/30656.html</link>
		<description><![CDATA[xml 文件如下：
&lt;?xml version="1.0" encoding="GBK"?&gt;&lt;studentlist&gt;&nbsp; &lt;student&gt;&nbsp;&nbsp;&nbsp; &lt;name&gt;吴贻龙&lt;/name&gt;&nbsp;&nbsp;&nbsp; &lt;num&gt;8000103124&lt;/num&gt;&nbsp;&nbsp;&nbsp; &lt;age&gt;21&lt;/age&gt;&nbsp;&nbsp;&nbsp; &lt;sex&gt;male&lt;/sex&gt;&nbsp;&nbsp;&nbsp; &lt;englishscores&gt;91&lt;/englishscores&gt;&nbsp;&nbsp;&nbsp; &lt;xmlscores&gt;80&lt;/xmlscores&gt;&nbsp;&nbsp;&nbsp; &lt;umlscores&gt;85&lt;/umlscores&gt;&nbsp;&nbsp;&nbsp; &lt;scholarship&gt;特等&lt;/scholarship&gt;&nbsp; &lt;/student&gt;&lt;/studentlist&gt;
程序如下：
&nbsp;
using System;using System.Collections.Generic;using System.Text;using System.Xml;using System.Collections;
namespace oXmlNode{&nbsp;&nbsp;&nbsp; class Program&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static void Main(string[] args)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XmlDocument doc = new XmlDocument();&nbsp;&nbsp;&nbsp;&nb]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-10-31 22:08:00</pubDate>
		</item>
				<item>
		<title><![CDATA[判断dataset是否为空]]></title>
		<link>http://blog.pfan.cn/jixian/30580.html</link>
		<description><![CDATA[应该先判断是否数据集为空（查询出错时），接着判断表中的行数是否为零（查询未出错且行数是否为零），否则容易出错，例如：先判断myDataSet.Tables[0].Rows.Count==0时，如果查询出错时，此时myDataSet为null，也就没有table，所以会报错。
故应该这样判断if (myDataSet == null || myDataSet.Tables[0].Rows.Count == 0){//为空时进行处理}else{//不为空时处理}“||”和“&amp;&amp;”操作符先判断第一个条件，不满足后接着判断下一条件，但如果上面顺序调换在myDataSet为null时则会出错，即先判断大的条件，接着判断小的条件]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-10-29 22:10:00</pubDate>
		</item>
				<item>
		<title><![CDATA[xsd架构生成类文件]]></title>
		<link>http://blog.pfan.cn/jixian/30144.html</link>
		<description><![CDATA[问题描叙：1、我们在项目一中添加一个“DataSetOne.xsd”，注意是数据集类型的，然后建立一个如下的Schema，点“保存”，可以看到多出一个DataSetOne.cs类，这是IDE自动生成的图一：创建含DataSet类的Xml Schema图2：编辑Schema图3：Schema将自动生成DataSetOne.cs类2、然后你需要在另外一个项目中也使用这个DataSetOne.xsd ,就把以下几个文件拷贝到另外一个项目中，并“包含到项目中来”图5：这个时候，你发现Schema不自动生成DataSetOne.cs了，而且文件跑到外面一层去了解决方案：图5：解决方案，先删除项目中的DataSetOne.cs文件，再右键点击DataSetOne.xsd，选择“属性”，在“自定义工具”栏上填写上“MSDataSetGenerator”，然后点保存即可]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-10-16 13:04:00</pubDate>
		</item>
				<item>
		<title><![CDATA[GridView中的超链接]]></title>
		<link>http://blog.pfan.cn/jixian/30115.html</link>
		<description><![CDATA[来自http://www.cnblogs.com/heekui/archive/2007/03/01/660339.html
&nbsp;
GridView中的超级链接，可以设置一个模版列，放入超级链接的控件，设置绑定参数即可。数据绑定方式有两种，如下示例：Eval方式&nbsp;&nbsp;&nbsp;&nbsp; &lt;%# Eval("id") %&gt;Bind方式&nbsp;&nbsp;&nbsp;&nbsp;&lt;%# Bind("id","~/info.aspx?id={0}") %&gt;推荐使用第一种方式，可以在一个&lt;%# %&gt;里放入多个绑定，而第二种只能如此绑定一个值&lt;%# Eval("id") + ":" + Eval("name")%&gt;做超级链接的控件，我们也有多种选择：1 asp:LinkButton 示例 &lt;asp:LinkButton ID="LinkButton2" OnClientClick=&lt;%# "window.open('info.aspx?id=" + Eval("id") + "&amp;name=" + Eval("name") + "')" %&gt; runat="server"&gt;&lt;%# "LinkButton方式绑定:" + Eval("id") %&gt;&lt;/asp:LinkButton&gt;
2 asp:HyperLink示例 &lt;asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='&lt;%# "~/info.aspx?id=" + Eval("id") + "&amp;name=" + Eval("name") %&gt;' Text='&lt;%# "HyperLink控件:" + Eval("id") %&gt;'&gt;&lt;/asp:HyperLink&gt;
3 a标签示例 &lt;a href='&lt;%# "info.aspx?id=" + Eval("id") + "&amp;name=" + Eval("name") %&gt;'&gt;a标签:&lt;%# Eval("id") + ":" + Eval("name")%&gt;&lt;/a&gt;&]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-10-14 23:30:00</pubDate>
		</item>
				<item>
		<title><![CDATA[const&nbsp;c#]]></title>
		<link>http://blog.pfan.cn/jixian/30073.html</link>
		<description><![CDATA[using System;using System.Collections.Generic;using System.Text;
namespace __13{&nbsp;&nbsp;&nbsp; class Program&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static void Main(string[] args)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const int a = 12;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const string b = "jack";&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const int c = a * 2;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; modify(a, b);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine(a+"&nbsp; "+b);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine(c);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private static void modify(int a, string b)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-10-13 20:49:00</pubDate>
		</item>
				<item>
		<title><![CDATA[c#方法参数]]></title>
		<link>http://blog.pfan.cn/jixian/30072.html</link>
		<description><![CDATA[using System;using System.Collections.Generic;using System.Text;using System.Collections;
namespace __9{&nbsp;&nbsp;&nbsp; class Program&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static void Main(string[] args)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int a = 3;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; testprimitive(a);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine(a);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //3
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ArrayList l = new ArrayList();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine(l.Count);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs]]></description>
		<author><![CDATA[地平线]]></author>
		<pubDate>2007-10-13 20:12:00</pubDate>
		</item>
		</channel>
</rss>