<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/ericfine" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/ericfine" type="application/rss+xml"></fs:self_link><lastBuildDate>Fri, 24 Oct 2008 17:06:00 GMT</lastBuildDate><title>Poor Eric &amp;gt;_&amp;lt;</title><description>ASP.NET 2.0 Newbie</description><link>http://blog.csdn.net/ericfine/</link><item><title>将DataTable导出为Excel (XML Spreadsheet).</title><link>http://blog.csdn.net/ericfine/archive/2008/10/24/3137196.aspx</link><wfw:comment>http://blog.csdn.net/ericfine/comments/3137196.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/ericfine/comments/commentRss/3137196.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3137196</trackback:ping><description>前阵子公司有同事需要将搜索页面的搜索结果导出成Excel文件. 用几个不同的办法做了出来. 最后部署时发现: 用COM+组件行不通, 服务器上没装OFFICE; 用OWC也不行, 因为服务器是64位的, OWC不支持; 导出成Excel2003支持的xml, 这招最灵活, 也是一个简单可行的办法.  首先用Excel 2003新建一个空白Wookbook, 然后保存为XML Spreadsheet. 然后打开看它生成的XML代码就能了解XML Spreadsheet的基本结构了.    我先把DataTable生成XML数据, 再使用一个XLS把XML数据转换成XML Spreadsheet的结构.     using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Reflection;
using System.Text;
using System.Xml;
using System.Xml.Xsl;

namespace APro&lt;img src =&quot;http://blog.csdn.net/ericfine/aggbug/3137196.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sat, 25 Oct 2008 01:06:00 +0800</pubDate><author>Eric</author><comments>http://blog.csdn.net/ericfine/archive/2008/10/24/3137196.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/ericfine/archive/2008/10/24/3137196.aspx</guid><dc:creator>Eric</dc:creator></item><item><title>SPGridView 研究笔记 Part 3 - 分组</title><link>http://blog.csdn.net/ericfine/archive/2008/10/23/3131800.aspx</link><wfw:comment>http://blog.csdn.net/ericfine/comments/3131800.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/ericfine/comments/commentRss/3131800.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3131800</trackback:ping><description>SPGridView提供数据分组显示功能, 但是只能将页面内数据分组. 只要设置 AllowGrouping(true), GroupField(某列名) 就能实现下面的效果.   如果需要给分组的列加链接加菜单的话, 就得再设置GroupMenu. GroupMenu需要一个SPMenuField对象, 而SPMenuField又需要一个MenuTemplate.  所以我们先加入一个MenuTemplate.     
    



由于这个GroupMenu不在Columns里, 而SPMenuField又不能像MenuTemplate一样扔在SPGridView之外. 所以只好在代码里加了.


  protected override void OnInit(EventArgs e)
{
    base.OnInit(e);
    this.SPGridView1.GroupMenu = new SPMenuField();
    this.SPGridView1.GroupMenu.MenuTemplateId = this.mtCatego&lt;img src =&quot;http://blog.csdn.net/ericfine/aggbug/3131800.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 24 Oct 2008 01:02:00 +0800</pubDate><author>Eric</author><comments>http://blog.csdn.net/ericfine/archive/2008/10/23/3131800.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/ericfine/archive/2008/10/23/3131800.aspx</guid><dc:creator>Eric</dc:creator></item><item><title>SPGridView 研究笔记 Part 2 - 排序与过滤</title><link>http://blog.csdn.net/ericfine/archive/2008/10/23/3130387.aspx</link><wfw:comment>http://blog.csdn.net/ericfine/comments/3130387.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/ericfine/comments/commentRss/3130387.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3130387</trackback:ping><description>SPGridView的排序与GridView是相同的. 我们先看看SPGridView默认排序功能的效果.      启用排序功能先把将SPGridView的AllowSorting属性设置成true, 然后给需要排序的列设置SortExpression属性. 这样就可以效果页面内的排序, 就是只能把当前在SPGridView里显示的数据排序一下.    如果需要从数据源那端排序, 就得先准备好一个有排序表达式参数的取数据方法, 之前我们准备的NorthwindData.cs里已经有了一个GetProductList(string sortExpression)方法, 我们只需要再把ObjectDataSource的SortParameterName设置成与那个参数名字一置, &quot;sortExpression&quot;就行了.     过滤是SPGridView新增的功能, 效果很酷.           Filter菜单中装载了SPGridView中全部的Category, 选中一个Category后SPGridView就会只显示选中Category的数据, 再点开Category菜单就变成右&lt;img src =&quot;http://blog.csdn.net/ericfine/aggbug/3130387.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 23 Oct 2008 23:25:00 +0800</pubDate><author>Eric</author><comments>http://blog.csdn.net/ericfine/archive/2008/10/23/3130387.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/ericfine/archive/2008/10/23/3130387.aspx</guid><dc:creator>Eric</dc:creator></item><item><title>SPGridView 研究笔记 Part 1 - 基础和项菜单</title><link>http://blog.csdn.net/ericfine/archive/2008/10/21/3118068.aspx</link><wfw:comment>http://blog.csdn.net/ericfine/comments/3118068.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/ericfine/comments/commentRss/3118068.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3118068</trackback:ping><description>今年一直在为MOSS 2007写自制ASP.NET程序, 为了让程序的样式更通用, 更配合MOSS自带的风格, 我花不了少时间调整样式, 建立公用的CSS和JS.  一个偶然的机会, 我从一大堆&quot;无用的&quot;SharePoint内置控件中找到一个可以用的控件, 就是SPGridView. SPGridView提供了MOSS的列表样式, 给我省了不少功夫. 虽然SPGridView跟MOSS列表页里用的ListViewWebPart长得一模一样, 但是ListViewWebPart根本没用到SPGridView, 所以MOSS列表页里那个漂亮的工具条你就别想了 呵呵.     SPGridView是MOSS内置控件中少数能脱离SharePoint List等内置数据源使用的控件, 它继承自System.Web.UI.WebControls.GridView, 但是使用SPGridView时必须手动把AutoGenerateColumns设成false.     1. 先创建一个ASP.NET Web Application(ASP.NET Web应用程序)项目.         该项目模板已&lt;img src =&quot;http://blog.csdn.net/ericfine/aggbug/3118068.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 21 Oct 2008 23:53:00 +0800</pubDate><author>Eric</author><comments>http://blog.csdn.net/ericfine/archive/2008/10/21/3118068.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/ericfine/archive/2008/10/21/3118068.aspx</guid><dc:creator>Eric</dc:creator></item><item><title>Eric的模板引擎 EFPlatform.CodeGenerator</title><link>http://blog.csdn.net/ericfine/archive/2007/06/28/1670811.aspx</link><wfw:comment>http://blog.csdn.net/ericfine/comments/1670811.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/ericfine/comments/commentRss/1670811.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1670811</trackback:ping><description>这个东东是去年我看着ASP:标记突发奇想花4天时间设计编写的类库, 原名叫 HtmlGenerator, 最近发现PHP和JAVA有很多类似的项目, 但是都设计的很渣(不同意的表打我@_@), 于是把 HtmlGenerator 重构了一下, 改叫 CodeGenerator. 配合我的数据库迁移工具和数据库实体类生成品..... 好像跑题了 -____-

CodeGenerator 的特点:
1. 标记简结实用, 所有网页美工都能在一分钟内掌握. 而且不与HTML标准冲突, 模板页可用任何WYSIWYG工具编辑, 和编辑普通HTML网完全相同.
2. 标记只与表示层相关, 不包括任何业务逻辑, 丝毫不影响你应用多层结构.
3. 标记到后台被解析成了生成器对象, 完全面向对象, 不像绝大多数生成器要死嗑字符串.
4. 生成器对象使用DataSource属性取得数据, DataSource可以为  简单值类型(如 int, DateTIme), 也可以为简单数组(如 decimal[], string[]), 还可以为ADO.NET数据集(如DataTable), 甚至单个&lt;img src =&quot;http://blog.csdn.net/ericfine/aggbug/1670811.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 29 Jun 2007 05:51:00 +0800</pubDate><author>Eric</author><comments>http://blog.csdn.net/ericfine/archive/2007/06/28/1670811.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/ericfine/archive/2007/06/28/1670811.aspx</guid><dc:creator>Eric</dc:creator></item><item><title>Eric 的随机文件名 生成方法</title><link>http://blog.csdn.net/ericfine/archive/2007/05/27/1627656.aspx</link><wfw:comment>http://blog.csdn.net/ericfine/comments/1627656.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/ericfine/comments/commentRss/1627656.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1627656</trackback:ping><description>利用 当前时间与2000-1-1 0:0:0 相差的毫秒数转成36进制字符串 加上4位随机字符串 生成一个随机文件名. 算是长度比较短而唯一性比较高的随机文件名生成方法了&lt;img src =&quot;http://blog.csdn.net/ericfine/aggbug/1627656.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 28 May 2007 07:42:00 +0800</pubDate><author>Eric</author><comments>http://blog.csdn.net/ericfine/archive/2007/05/27/1627656.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/ericfine/archive/2007/05/27/1627656.aspx</guid><dc:creator>Eric</dc:creator></item><item><title>用于下载HTML中远程图片的方法</title><link>http://blog.csdn.net/ericfine/archive/2007/05/25/1624976.aspx</link><wfw:comment>http://blog.csdn.net/ericfine/comments/1624976.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/ericfine/comments/commentRss/1624976.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1624976</trackback:ping><description>RequestFileFromHtml(string html, string fileUrl, string filePath, string reservedHost)&lt;img src =&quot;http://blog.csdn.net/ericfine/aggbug/1624976.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 25 May 2007 16:46:00 +0800</pubDate><author>Eric</author><comments>http://blog.csdn.net/ericfine/archive/2007/05/25/1624976.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/ericfine/archive/2007/05/25/1624976.aspx</guid><dc:creator>Eric</dc:creator></item><item><title>JavaScript: 使用面向对象的技术创建高级 Web 应用程序</title><link>http://blog.csdn.net/ericfine/archive/2007/05/15/1610441.aspx</link><wfw:comment>http://blog.csdn.net/ericfine/comments/1610441.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/ericfine/comments/commentRss/1610441.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1610441</trackback:ping><description>JavaScript 对象是词典
JavaScript 函数是最棒的
构造函数而不是类
原型
静态属性和方法
闭包
模拟私有属性
从类继承
模拟命名空间
应当这样编写 JavaScript 代码吗？
展望
&lt;img src =&quot;http://blog.csdn.net/ericfine/aggbug/1610441.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Wed, 16 May 2007 03:44:00 +0800</pubDate><author>Eric</author><comments>http://blog.csdn.net/ericfine/archive/2007/05/15/1610441.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/ericfine/archive/2007/05/15/1610441.aspx</guid><dc:creator>Eric</dc:creator></item><item><title>用DIV+CSS实现文字及面板阴影效果</title><link>http://blog.csdn.net/ericfine/archive/2007/04/27/1587080.aspx</link><wfw:comment>http://blog.csdn.net/ericfine/comments/1587080.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/ericfine/comments/commentRss/1587080.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1587080</trackback:ping><description>不使用IE的Filter,用DIV+CSS实现实现文字及面板阴影效果, 在IE及FF中都可用&lt;img src =&quot;http://blog.csdn.net/ericfine/aggbug/1587080.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 27 Apr 2007 20:36:00 +0800</pubDate><author>Eric</author><comments>http://blog.csdn.net/ericfine/archive/2007/04/27/1587080.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/ericfine/archive/2007/04/27/1587080.aspx</guid><dc:creator>Eric</dc:creator></item><item><title>用CSS控制FireFox的折行问题</title><link>http://blog.csdn.net/ericfine/archive/2006/10/27/1353639.aspx</link><wfw:comment>http://blog.csdn.net/ericfine/comments/1353639.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/ericfine/comments/commentRss/1353639.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1353639</trackback:ping><description>CSS在网页表现上得到广泛的应用。其中，word-wrap属性用于控制文字的折行，但是该属性是微软IE的专有属性，其它浏览器并不支持&lt;img src =&quot;http://blog.csdn.net/ericfine/aggbug/1353639.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sat, 28 Oct 2006 02:46:00 +0800</pubDate><author>Eric</author><comments>http://blog.csdn.net/ericfine/archive/2006/10/27/1353639.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/ericfine/archive/2006/10/27/1353639.aspx</guid><dc:creator>Eric</dc:creator></item></channel></rss>