<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_静心</title><subtitle type="text"/><id>http://feed.cnblogs.com/blog/u/20750/rss</id><updated>2010-07-22T06:23:39Z</updated><author><name>冷火</name><uri>http://www.cnblogs.com/xiongeee/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/xiongeee/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/20750/rss"/><entry><id>http://www.cnblogs.com/xiongeee/archive/2010/05/25/1743566.html</id><title type="text">Lucene.Net学习</title><summary type="text">http://www.cnblogs.com/birdshover/archive/2008/08/26/1277103.html http://www.cnblogs.com/focustea/archive/2009/07/07/1518484.html</summary><published>2010-05-25T06:00:00Z</published><updated>2010-05-25T06:00:00Z</updated><author><name>冷火</name><uri>http://www.cnblogs.com/xiongeee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/xiongeee/archive/2010/05/25/1743566.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/xiongeee/archive/2010/05/25/1743566.html"/><content type="html">&lt;p&gt;http://www.cnblogs.com/birdshover/archive/2008/08/26/1277103.html &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;http://www.cnblogs.com/focustea/archive/2009/07/07/1518484.html&amp;nbsp;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/xiongeee/aggbug/1743566.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/xiongeee/archive/2010/05/25/1743566.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/xiongeee/archive/2010/04/02/1702866.html</id><title type="text">Argotic Syndication Framework生成RSS</title><summary type="text">如果在当前页输出可以用如下代码: Response.ContentType = "application/rss+xml"; SyndicationResourceSaveSettings settings = new SyndicationResourceSaveSettings(); settings.CharacterEncoding = new UTF8Encoding(false); f...</summary><published>2010-04-02T01:57:00Z</published><updated>2010-04-02T01:57:00Z</updated><author><name>冷火</name><uri>http://www.cnblogs.com/xiongeee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/xiongeee/archive/2010/04/02/1702866.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/xiongeee/archive/2010/04/02/1702866.html"/><content type="html">&lt;pre&gt;using System.IO;&lt;br /&gt;using Argotic.Syndication;&lt;br /&gt; &lt;br /&gt;RssFeed feed                = new RssFeed();&lt;br /&gt; &lt;br /&gt;feed.Channel.Link           = new Uri("http://localhost");&lt;br /&gt;feed.Channel.Title          = "Simple RSS Feed";&lt;br /&gt;feed.Channel.Description    = "A minimal RSS 2.0 syndication feed.";&lt;br /&gt; &lt;br /&gt;RssItem item                = new RssItem();&lt;br /&gt;item.Title                  = "Simple RSS Item";&lt;br /&gt;item.Link                   = new Uri("http://localhost/items/SimpleRSSItem.aspx");&lt;br /&gt;item.Description            = "A minimal RSS channel item.";&lt;br /&gt; &lt;br /&gt;feed.Channel.AddItem(item);&lt;br /&gt; &lt;br /&gt;using(FileStream stream = new FileStream("SimpleRssFeed.xml", FileMode.Create, FileAccess.Write))&lt;br /&gt;{&lt;br /&gt;    feed.Save(stream);&lt;br /&gt;}&lt;br /&gt;例子2:&lt;br /&gt;&lt;pre&gt;using System.IO;&lt;br /&gt;using Argotic.Common;&lt;br /&gt;using Argotic.Syndication;&lt;br /&gt; &lt;br /&gt;RssFeed feed                = new RssFeed();&lt;br /&gt; &lt;br /&gt;feed.Channel.Link           = new Uri("http://localhost");&lt;br /&gt;feed.Channel.Title          = "Compact RSS Feed";&lt;br /&gt;feed.Channel.Description    = "A minimal and non-indented RSS 2.0 syndication feed.";&lt;br /&gt; &lt;br /&gt;RssItem item                = new RssItem();&lt;br /&gt;item.Title                  = "Simple RSS Item";&lt;br /&gt;item.Link                   = new Uri("http://localhost/items/SimpleRSSItem.aspx");&lt;br /&gt;item.Description            = "A minimal RSS channel item.";&lt;br /&gt; &lt;br /&gt;feed.Channel.AddItem(item);&lt;br /&gt; &lt;br /&gt;using (FileStream stream = new FileStream("CompactRssFeed.xml", FileMode.Create, FileAccess.Write))&lt;br /&gt;{&lt;br /&gt;    SyndicationResourceSaveSettings settings    = new SyndicationResourceSaveSettings();&lt;br /&gt;    settings.MinimizeOutputSize                 = true;&lt;br /&gt; &lt;br /&gt;    feed.Save(stream, settings);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;如果在当前页输出可以用如下代码:&lt;/p&gt;&lt;p&gt;Response.ContentType = "application/rss+xml";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SyndicationResourceSaveSettings settings = new SyndicationResourceSaveSettings();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; settings.CharacterEncoding = new UTF8Encoding(false);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feed.Save(Response.OutputStream, settings);&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;读取的例子:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;using Argotic.Extensions.Core;&lt;br /&gt;using Argotic.Syndication;&lt;br /&gt; &lt;br /&gt;RssFeed feed                = new RssFeed(new Uri("http://example.com/feed.aspx"), "Simple extended syndication feed");&lt;br /&gt;feed.Channel.Description    = "An example of how to generate an extended syndication feed.";&lt;br /&gt; &lt;br /&gt;//  Create and add iTunes information to feed channel&lt;br /&gt;ITunesSyndicationExtension channelExtension = new ITunesSyndicationExtension();&lt;br /&gt;channelExtension.Context.Subtitle           = "This feed uses the iTunes syndication extension.";&lt;br /&gt;channelExtension.Context.ExplicitMaterial   = ITunesExplicitMaterial.No;&lt;br /&gt;channelExtension.Context.Author             = "John Doe";&lt;br /&gt;channelExtension.Context.Summary            = "The Argotic syndication framework natively supports the iTunes syndication extension.";&lt;br /&gt;channelExtension.Context.Owner              = new ITunesOwner("john.doe@example.com", "John Q. Doe");&lt;br /&gt;channelExtension.Context.Image              = new Uri("http://example.com.feed_logo.jpg");&lt;br /&gt; &lt;br /&gt;channelExtension.Context.Categories.Add(new ITunesCategory("Extensions"));&lt;br /&gt;channelExtension.Context.Categories.Add(new ITunesCategory("iTunes"));&lt;br /&gt; &lt;br /&gt;feed.Channel.AddExtension(channelExtension);&lt;br /&gt; &lt;br /&gt;//  Create and add iTunes information to channel item&lt;br /&gt;RssItem item            = new RssItem();&lt;br /&gt;item.Title              = "My Extended Channel Item";&lt;br /&gt;item.Link               = new Uri("http://example.com/posts/1234");&lt;br /&gt;item.PublicationDate    = DateTime.Now;&lt;br /&gt; &lt;br /&gt;RssEnclosure enclosure  = new RssEnclosure(47156978L, "audio/mp3", new Uri("http://example.com/myPodcast.mp3"));&lt;br /&gt;item.Enclosures.Add(enclosure);&lt;br /&gt; &lt;br /&gt;ITunesSyndicationExtension itemExtension    = new ITunesSyndicationExtension();&lt;br /&gt;itemExtension.Context.Author                = "Jane Doe";&lt;br /&gt;itemExtension.Context.Subtitle              = "This channel item uses the iTunes syndication extension.";&lt;br /&gt;itemExtension.Context.Summary               = "The iTunes syndication extension properties that are used vary based on whether extending the channel or an item";&lt;br /&gt;itemExtension.Context.Duration              = new TimeSpan(1, 2, 13);&lt;br /&gt;itemExtension.Context.Keywords.Add("Podcast");&lt;br /&gt;itemExtension.Context.Keywords.Add("iTunes");&lt;br /&gt; &lt;br /&gt;item.AddExtension(itemExtension);&lt;br /&gt; &lt;br /&gt;feed.Channel.AddItem(item);&lt;br /&gt; &lt;br /&gt;//  Persist extended feed&lt;br /&gt;using (FileStream stream = new FileStream("ExtendedFeed.rss.xml", FileMode.Create, FileAccess.Write))&lt;br /&gt;{&lt;br /&gt;    feed.Save(stream);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/xiongeee/aggbug/1702866.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/xiongeee/archive/2010/04/02/1702866.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/xiongeee/archive/2010/02/09/1666210.html</id><title type="text">Confirm GridView Deletes with the ModalPopupExtender</title><summary type="text">I was looking for good examples of how the ModalPopupExtender control could be used as a confirmation dialog.  I was especially curious in seeing implementations where the popup is used to confirm del...</summary><published>2010-02-09T01:14:00Z</published><updated>2010-02-09T01:14:00Z</updated><author><name>冷火</name><uri>http://www.cnblogs.com/xiongeee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/xiongeee/archive/2010/02/09/1666210.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/xiongeee/archive/2010/02/09/1666210.html"/></entry><entry><id>http://www.cnblogs.com/xiongeee/archive/2010/01/06/1640403.html</id><title type="text">如何在C#中实现图片缩放</title><summary type="text">//************************************************************////下面给出三个简单的方法，后面两个方法是扩展，估计有时用得着//************************************************************///// &amp;lt;summary&amp;gt;/// 缩小图片/// &amp;lt;/summa...</summary><published>2010-01-06T06:43:00Z</published><updated>2010-01-06T06:43:00Z</updated><author><name>冷火</name><uri>http://www.cnblogs.com/xiongeee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/xiongeee/archive/2010/01/06/1640403.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/xiongeee/archive/2010/01/06/1640403.html"/></entry><entry><id>http://www.cnblogs.com/xiongeee/archive/2009/12/04/1616980.html</id><title type="text">[ASP.NET] 限制上传文件类型的两种方法</title><summary type="text">通常，为了防止因用户上传有害文件（如木马、黑客程序）引发的安全性问题，Web程序都会对用户允许上传的文件类型加以限制。而本文将要介绍的就是如何在ASP.NET应用程序中利用Web Control的内置属性简单高效地实现限制上传文件类型的功能。 　　在调用PostFile对象的SaveAs方法保存上传文件之前，可以通过PostFile对象的FileName属性得到上传的文件名。而有了上传的文件名，就...</summary><published>2009-12-04T06:11:00Z</published><updated>2009-12-04T06:11:00Z</updated><author><name>冷火</name><uri>http://www.cnblogs.com/xiongeee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/xiongeee/archive/2009/12/04/1616980.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/xiongeee/archive/2009/12/04/1616980.html"/></entry><entry><id>http://www.cnblogs.com/xiongeee/archive/2009/08/06/1540085.html</id><title type="text">asp.net采集</title><summary type="text">采集取得页面HTML代码的例子上面已经给出不少了 下面的代码是使用正则表达式取得ＨＴＭＬ中内容的代码 Regex  regex1  =  new  Regex(this.NameKey,  RegexOptions.Singleline  |  RegexOptions.IgnoreCase  ); MatchCollection  collection1  =  regex1.Matches(t...</summary><published>2009-08-06T01:50:00Z</published><updated>2009-08-06T01:50:00Z</updated><author><name>冷火</name><uri>http://www.cnblogs.com/xiongeee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/xiongeee/archive/2009/08/06/1540085.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/xiongeee/archive/2009/08/06/1540085.html"/></entry><entry><id>http://www.cnblogs.com/xiongeee/archive/2009/07/14/1523474.html</id><title type="text">在C#怎用一条正则表达式验证用逗号隔开的email地址</title><summary type="text">比喻输入email地址为  aa@bb.com,bb@dd.com,vvv@cn.com, 最后有逗号也允许？ //不允许^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*(,\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*$//允许^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\...</summary><published>2009-07-14T08:21:00Z</published><updated>2009-07-14T08:21:00Z</updated><author><name>冷火</name><uri>http://www.cnblogs.com/xiongeee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/xiongeee/archive/2009/07/14/1523474.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/xiongeee/archive/2009/07/14/1523474.html"/></entry><entry><id>http://www.cnblogs.com/xiongeee/archive/2009/07/06/1517693.html</id><title type="text">关于LumiSoft.Net.POP3.Client接收邮件例子(包括附件)</title><summary type="text">LumiSoftReceive.aspx.csusing System;using System.Collections.Generic;using System.Data;using System.IO;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Lumi...</summary><published>2009-07-06T06:49:00Z</published><updated>2009-07-06T06:49:00Z</updated><author><name>冷火</name><uri>http://www.cnblogs.com/xiongeee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/xiongeee/archive/2009/07/06/1517693.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/xiongeee/archive/2009/07/06/1517693.html"/></entry><entry><id>http://www.cnblogs.com/xiongeee/archive/2009/06/29/1513030.html</id><title type="text">dhtmlXTreeprofessional</title><summary type="text">/Files/xiongeee/dhtmlXTreeprofessionalv1.3.rar</summary><published>2009-06-29T02:54:00Z</published><updated>2009-06-29T02:54:00Z</updated><author><name>冷火</name><uri>http://www.cnblogs.com/xiongeee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/xiongeee/archive/2009/06/29/1513030.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/xiongeee/archive/2009/06/29/1513030.html"/></entry><entry><id>http://www.cnblogs.com/xiongeee/archive/2009/06/22/1508286.html</id><title type="text">asp.net导出xml文件</title><summary type="text">protected void Button1_Click(object sender, EventArgs e) { Random random=new Random(); int rnumber=random.Next(1, 100); string outPutName = DateTime.Now.ToString("yyyyMMddhhmmss") + rnumber.ToString()...</summary><published>2009-06-22T06:48:00Z</published><updated>2009-06-22T06:48:00Z</updated><author><name>冷火</name><uri>http://www.cnblogs.com/xiongeee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/xiongeee/archive/2009/06/22/1508286.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/xiongeee/archive/2009/06/22/1508286.html"/></entry></feed>
