<?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/moshuchao" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/moshuchao" type="application/rss+xml"></fs:self_link><lastBuildDate>Wed, 09 Jul 2008 20:14:00 GMT</lastBuildDate><title>moshuchao的专栏</title><description>.net 学习园地 人过留名 雁过留声，请留下你的看法和想法</description><item><title>Javascript  调用C# 代码并传递参数的两种方法</title><link>http://blog.csdn.net/moshuchao/archive/2008/07/09/2630462.aspx</link><wfw:comment>comments/2630462.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2630462.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2630462</trackback:ping><description>Javascript调用C#代码的方法网上介绍了很多种方法，也很详细，但没有向C#传递参数的方法。今天刚好用到，搞了半天才搞出来（其实我很笨）。下面说一下具体实现的方法。
一、使用HiddenField 控件。
     HiddenField控件顾名思义就是隐藏输入框的服务器控件，它能让你保存那些不需要显示在页面上的且对安全性要求不高的数据。也许这个时候应该有这么一个疑问，为什么有了ViewState、Session和Cookie等状态保存机制，还需要用起HiddenField呢？

　　增加HiddenField，其实是为了让整个状态管理机制的应用程度更加全面。因为不管是ViewState、Cookie还是Session，都有其失效的时候，比如用户因某种需求要求设置ViewState为false，或者环境条件限制使用Cookie，或者用户长时间没有动作导致 Session过期等等，那这个时候HiddenField无疑是最佳选择。

　　HiddenField控件的作用简单的说是用于存储需要在向服务器的发送间保持的值。它作为 ＜input typ&lt;img src =&quot;aggbug/2630462.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 10 Jul 2008 04:14:00 +0800</pubDate><author>moshuchao</author><comments>http://blog.csdn.net/moshuchao/archive/2008/07/09/2630462.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/moshuchao/archive/2008/07/09/2630462.aspx</guid><dc:creator>moshuchao</dc:creator><fs:srclink>http://blog.csdn.net/moshuchao/archive/2008/07/09/2630462.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/moshuchao/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/moshuchao/~1299500/206275300/1302488</fs:itemid></item><item><title>不预览直接打印 Microsoft RDLC报表</title><link>http://blog.csdn.net/moshuchao/archive/2008/07/03/2607017.aspx</link><wfw:comment>comments/2607017.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2607017.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2607017</trackback:ping><description>做报表时一直用水晶报表来做,最近发现用Microsoft的RDLC做报表也不错,而且方便,最主要布署(WEB)的时修没有水晶报表那么麻烦。 但是唯一的缺点是学习资料太少了，都得自己瞎搞。唯一好的资源就只有蜡人张同志的《RDLC报表》系列，当然还有MSDN 。下面是不预览直接打印的实现，主要代码来自MSDN。&lt;img src =&quot;aggbug/2607017.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 03 Jul 2008 17:03:00 +0800</pubDate><author>moshuchao</author><comments>http://blog.csdn.net/moshuchao/archive/2008/07/03/2607017.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/moshuchao/archive/2008/07/03/2607017.aspx</guid><dc:creator>moshuchao</dc:creator><fs:srclink>http://blog.csdn.net/moshuchao/archive/2008/07/03/2607017.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/moshuchao/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/moshuchao/~1299500/206275301/1302488</fs:itemid></item><item><title>如何让 DataGridVew 列顺序保持设计时顺序</title><link>http://blog.csdn.net/moshuchao/archive/2008/06/29/2596032.aspx</link><wfw:comment>comments/2596032.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>comments/commentRss/2596032.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2596032</trackback:ping><description>在使用Datagridview时，当重新对DataSoruce 属性赋值时，往往列顺序就会改变为DataSource属性的值的排序顺序。这样就会破坏我们的设计，违背我们原来的意图。那有什么方法可以列序按照我们的想法来排列呢？
方法有两种：
1、让DataSource属性的新值的Columns按照我们要的顺序排序。
2、在给DataSource属性赋值之后，对列(Column)的DataPropertyName属性绑定一个数据字段，
3、改写DataGridView。
      下面我们对以上三种方法，进行分析：
     第一种方法实现简单，但这样做如果数据结构（或需求）变化时，要修改的地方比较多，而且不便于设计时的所见即所得，更不便于维护，所以我不采用它。
    第二种方法，好是很好，但当Column包含有按钮列等其它非文本列时一样会进行重新排序，所以这种方法也不能满足我们的需求。
   最后我只有采用第三种方法：改写DataGridView，我们增加一个新的DataSourceNew属性，在它的set访问器，里增加两个方法。一个是保存列序号，&lt;img src =&quot;aggbug/2596032.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 30 Jun 2008 01:43:00 +0800</pubDate><author>moshuchao</author><comments>http://blog.csdn.net/moshuchao/archive/2008/06/29/2596032.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/moshuchao/archive/2008/06/29/2596032.aspx</guid><dc:creator>moshuchao</dc:creator><fs:srclink>http://blog.csdn.net/moshuchao/archive/2008/06/29/2596032.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/moshuchao/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/moshuchao/~1299500/206275302/1302488</fs:itemid></item><item><title>条码(code128)的不同版本实现</title><link>http://blog.csdn.net/moshuchao/archive/2008/06/16/2552323.aspx</link><wfw:comment>comments/2552323.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2552323.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2552323</trackback:ping><description>好久没写Blog了，这次写写条码（code128)打印的实现。条码在工业应用方面很广泛，所以我们在编写程序时，特别是打印报表时，经常用到。&lt;img src =&quot;aggbug/2552323.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 16 Jun 2008 18:17:00 +0800</pubDate><author>moshuchao</author><comments>http://blog.csdn.net/moshuchao/archive/2008/06/16/2552323.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/moshuchao/archive/2008/06/16/2552323.aspx</guid><dc:creator>moshuchao</dc:creator><fs:srclink>http://blog.csdn.net/moshuchao/archive/2008/06/16/2552323.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/moshuchao/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/moshuchao/~1299500/206275303/1302488</fs:itemid></item><item><title>使用firefox+gspace+GMail组成超级U盘</title><link>http://blog.csdn.net/moshuchao/archive/2008/04/02/2245233.aspx</link><wfw:comment>comments/2245233.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2245233.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2245233</trackback:ping><description>使用firefox+gspace+GMail组成超级U盘&lt;img src =&quot;aggbug/2245233.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Wed, 02 Apr 2008 23:31:00 +0800</pubDate><author>moshuchao</author><comments>http://blog.csdn.net/moshuchao/archive/2008/04/02/2245233.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/moshuchao/archive/2008/04/02/2245233.aspx</guid><dc:creator>moshuchao</dc:creator><fs:srclink>http://blog.csdn.net/moshuchao/archive/2008/04/02/2245233.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/moshuchao/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/moshuchao/~1299500/206275304/1302488</fs:itemid></item><item><title>Shell十三问</title><link>http://blog.csdn.net/moshuchao/archive/2008/03/15/2185346.aspx</link><wfw:comment>comments/2185346.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2185346.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2185346</trackback:ping><description>shell 编程&lt;img src =&quot;aggbug/2185346.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sat, 15 Mar 2008 23:43:00 +0800</pubDate><author>moshuchao</author><comments>http://blog.csdn.net/moshuchao/archive/2008/03/15/2185346.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/moshuchao/archive/2008/03/15/2185346.aspx</guid><dc:creator>moshuchao</dc:creator><fs:srclink>http://blog.csdn.net/moshuchao/archive/2008/03/15/2185346.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/moshuchao/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/moshuchao/~1299500/206275305/1302488</fs:itemid></item><item><title>ubuntu server 安装 日记</title><link>http://blog.csdn.net/moshuchao/archive/2008/03/09/2160930.aspx</link><wfw:comment>comments/2160930.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>comments/commentRss/2160930.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2160930</trackback:ping><description>ubuntu linux  安装&lt;img src =&quot;aggbug/2160930.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 10 Mar 2008 06:36:00 +0800</pubDate><author>moshuchao</author><comments>http://blog.csdn.net/moshuchao/archive/2008/03/09/2160930.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/moshuchao/archive/2008/03/09/2160930.aspx</guid><dc:creator>moshuchao</dc:creator><fs:srclink>http://blog.csdn.net/moshuchao/archive/2008/03/09/2160930.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/moshuchao/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/moshuchao/~1299500/206275306/1302488</fs:itemid></item><item><title>windows 传递文件到ubuntu的一种方法。</title><link>http://blog.csdn.net/moshuchao/archive/2008/03/09/2159912.aspx</link><wfw:comment>comments/2159912.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2159912.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2159912</trackback:ping><description>windows 传递文件到ubuntu的一种方法。&lt;img src =&quot;aggbug/2159912.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 10 Mar 2008 00:25:00 +0800</pubDate><author>moshuchao</author><comments>http://blog.csdn.net/moshuchao/archive/2008/03/09/2159912.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/moshuchao/archive/2008/03/09/2159912.aspx</guid><dc:creator>moshuchao</dc:creator><fs:srclink>http://blog.csdn.net/moshuchao/archive/2008/03/09/2159912.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/moshuchao/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/moshuchao/~1299500/206275307/1302488</fs:itemid></item><item><title>linux 下配置mysql 的默认字符集(character-set)</title><link>http://blog.csdn.net/moshuchao/archive/2008/03/06/2155082.aspx</link><wfw:comment>comments/2155082.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2155082.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2155082</trackback:ping><description>linux 下配置mysql 的默认字符集(character-set)&lt;img src =&quot;aggbug/2155082.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 07 Mar 2008 05:54:00 +0800</pubDate><author>moshuchao</author><comments>http://blog.csdn.net/moshuchao/archive/2008/03/06/2155082.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/moshuchao/archive/2008/03/06/2155082.aspx</guid><dc:creator>moshuchao</dc:creator><fs:srclink>http://blog.csdn.net/moshuchao/archive/2008/03/06/2155082.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/moshuchao/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/moshuchao/~1299500/206275308/1302488</fs:itemid></item><item><title>MySQL 的存储过程写法和Cursor的使用</title><link>http://blog.csdn.net/moshuchao/archive/2008/03/06/2153474.aspx</link><wfw:comment>comments/2153474.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2153474.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2153474</trackback:ping><description>MySQL 的存储过程写法和Cursor的使用 &lt;img src =&quot;aggbug/2153474.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 06 Mar 2008 18:59:00 +0800</pubDate><author>moshuchao</author><comments>http://blog.csdn.net/moshuchao/archive/2008/03/06/2153474.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/moshuchao/archive/2008/03/06/2153474.aspx</guid><dc:creator>moshuchao</dc:creator><fs:srclink>http://blog.csdn.net/moshuchao/archive/2008/03/06/2153474.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/moshuchao/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/moshuchao/~1299500/206275309/1302488</fs:itemid></item></channel></rss>