<?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/Moon_F" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/Moon_F" type="application/rss+xml"></fs:self_link><lastBuildDate>Fri, 29 May 2009 10:16:00 GMT</lastBuildDate><title>Moon_F的专栏</title><link>http://blog.csdn.net/Moon_F/</link><item><title>.NET之对接口和抽象类</title><link>http://blog.csdn.net/Moon_F/archive/2009/05/29/4223490.aspx</link><wfw:comment>http://blog.csdn.net/Moon_F/comments/4223490.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Moon_F/comments/commentRss/4223490.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4223490</trackback:ping><description>&lt;br /&gt;什么是.NET接口&lt;br /&gt;.NET接口是包含一组虚方法的抽象类型，其中每一种方法都有其名称、参数和返回值。接口方法不能包含任何实现，CLR允许接口可以包含事件、属性、索引器、静态方法、静态字段、静态构造函数以及常数。但是注意：C#中不能包含任何静态成员。一个类可以实现多个接口，当一个类继承某个接口时，它不仅要实现该接口定义的所有方法，还要实现该接口从其他接口中继承的所有方法。&lt;br /&gt;定义方法为：&lt;br /&gt;public interface System.IComparable&lt;br /&gt;{&lt;br /&gt;　int CompareTo(object o);&lt;br /&gt;}&lt;br /&gt;public class TestCls: IComparable&lt;br /&gt;{&lt;br /&gt;　public TestCls()&lt;br /&gt;　{&lt;br /&gt;　}&lt;br /&gt;　private int _value;&lt;br /&gt;　public int Value&lt;br /&gt;　{&lt;br /&gt;　　get { return _value; }&lt;br /&gt;　　set { _value = value; }&lt;img src =&quot;http://blog.csdn.net/Moon_F/aggbug/4223490.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/225489102/Moon_F/csdn.net/s.gif?r=http://blog.csdn.net/Moon_F/archive/2009/05/29/4223490.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/Moon_F/225489102/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/Moon_F/225489102/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 29 May 2009 18:16:00 +0800</pubDate><author>QiuShengFang</author><comments>http://blog.csdn.net/Moon_F/archive/2009/05/29/4223490.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Moon_F/archive/2009/05/29/4223490.aspx</guid><dc:creator>QiuShengFang</dc:creator><fs:srclink>http://blog.csdn.net/Moon_F/archive/2009/05/29/4223490.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/Moon_F/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/Moon_F/~7362581/225489102/5472087</fs:itemid></item><item><title>深切认识.NET接口</title><link>http://blog.csdn.net/Moon_F/archive/2009/05/25/4214311.aspx</link><wfw:comment>http://blog.csdn.net/Moon_F/comments/4214311.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Moon_F/comments/commentRss/4214311.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4214311</trackback:ping><description>&lt;br /&gt;1、C#接口的作用 ：&lt;br /&gt;&lt;br /&gt;C#接口是一个让很多初学C#者容易迷糊的东西，用起来好像很简单，定义接口，里面包含方法，但没有方法具体实现的代码，然后在继承该接口的类里面要实现接口的所有方法的代码，但没有真正认识到接口的作用的时候就觉得用接口是多此一举，当然你这样想那是绝对绝对错误的，比尔盖茨的微软请的员工都是比盖茨还聪明的人，他们的C#能添这样的多足吗？！关于接口的作用，网上有一位就真的深入浅出给我们做了很好理解的分析。  我们定义一个接口&lt;br /&gt;public interface IBark&lt;br /&gt;{&lt;br /&gt;   void Bark();&lt;br /&gt;}&lt;br /&gt;再定义一个类,继承于IBark,并且必需实现其中的Bark()方法&lt;br /&gt;public class Dog:IBark&lt;br /&gt;{&lt;br /&gt;   public Dog()&lt;br /&gt;   {}&lt;br /&gt;   public void Bark()&lt;br /&gt;   {&lt;br /&gt;      Consol.write(&quot;汪汪&quot;);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;然后,&lt;img src =&quot;http://blog.csdn.net/Moon_F/aggbug/4214311.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/223479879/Moon_F/csdn.net/s.gif?r=http://blog.csdn.net/Moon_F/archive/2009/05/25/4214311.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/Moon_F/223479879/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/Moon_F/223479879/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 25 May 2009 22:48:00 +0800</pubDate><author>QiuShengFang</author><comments>http://blog.csdn.net/Moon_F/archive/2009/05/25/4214311.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Moon_F/archive/2009/05/25/4214311.aspx</guid><dc:creator>QiuShengFang</dc:creator><fs:srclink>http://blog.csdn.net/Moon_F/archive/2009/05/25/4214311.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/Moon_F/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/Moon_F/~7362581/223479879/5472087</fs:itemid></item><item><title>ASP.NET 页面控件深层遍历</title><link>http://blog.csdn.net/Moon_F/archive/2008/12/06/3460870.aspx</link><wfw:comment>http://blog.csdn.net/Moon_F/comments/3460870.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Moon_F/comments/commentRss/3460870.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3460870</trackback:ping><description>///在页面上写入此段代码即可实现对页面控件的深层遍历foreach(Control ctrl in Page.Forms) &lt;br /&gt;{         ClearAllContent(ctrl)&lt;br /&gt;}private void ClearAllContent(System.Web.UI.Control col ){    if (control.HasControls())        {            ClearAllContent(col)        }}&lt;img src =&quot;http://blog.csdn.net/Moon_F/aggbug/3460870.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/Moon_F/223479880/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/Moon_F/223479880/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 07 Dec 2008 05:10:00 +0800</pubDate><author>Moon_F</author><comments>http://blog.csdn.net/Moon_F/archive/2008/12/06/3460870.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Moon_F/archive/2008/12/06/3460870.aspx</guid><dc:creator>Moon_F</dc:creator><fs:srclink>http://blog.csdn.net/Moon_F/archive/2008/12/06/3460870.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/Moon_F/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/Moon_F/~7362581/223479880/5472087</fs:itemid></item><item><title>Response.Redirect 产生的“正在中止线程(執行緒中止)”错误</title><link>http://blog.csdn.net/Moon_F/archive/2008/10/22/3124977.aspx</link><wfw:comment>http://blog.csdn.net/Moon_F/comments/3124977.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Moon_F/comments/commentRss/3124977.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3124977</trackback:ping><description>这两天在开发调试过程中，老是会出现在一个 &quot;正在中止线程“(ThreadAbortException)的例外信息。例外是由 Response.Redirect 方法产生的，虽然知道是线程的问题， 但是不知为何 Redirect会出现这样的错误，以前是没有碰到过，转移到 Asp.net 2.0 开发就遇上了。在狂Google了一下后，才发现MS早就发现了这个问题，但提供了解决方法。以下是主要信息的摘要:症状如果使用 Response.End、Response.Redirect 或 Server.Transfer 方法，将出现 ThreadAbortException 异常。您可以使用 try-catch 语句捕获此异常。原因Response.End 方法终止页的执行，并将此执行切换到应用程序的事件管线中的 Application_EndRequest 事件。不执行 Response.End 后面的代码行。&lt;br /&gt;&lt;br /&gt;此问题出现在 Response.Redirect 和 Server.Transfer 方法中，因为这两种方法均在内部调用 Response.End。解决方案要解决&lt;img src =&quot;http://blog.csdn.net/Moon_F/aggbug/3124977.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/Moon_F/223479881/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/Moon_F/223479881/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 22 Oct 2008 23:58:00 +0800</pubDate><author>Moon_F</author><comments>http://blog.csdn.net/Moon_F/archive/2008/10/22/3124977.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Moon_F/archive/2008/10/22/3124977.aspx</guid><dc:creator>Moon_F</dc:creator><fs:srclink>http://blog.csdn.net/Moon_F/archive/2008/10/22/3124977.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/Moon_F/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/Moon_F/~7362581/223479881/5472087</fs:itemid></item><item><title>正则表达式</title><link>http://blog.csdn.net/Moon_F/archive/2008/10/12/3065025.aspx</link><wfw:comment>http://blog.csdn.net/Moon_F/comments/3065025.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Moon_F/comments/commentRss/3065025.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3065025</trackback:ping><description>&lt;br /&gt;整数或者小数：^[0-9]+\.{0,1}[0-9]{0,2}$&lt;br /&gt;只能输入数字：&quot;^[0-9]*$&quot;。&lt;br /&gt;只能输入n位的数字：&quot;^\d{n}$&quot;。&lt;br /&gt;只能输入至少n位的数字：&quot;^\d{n,}$&quot;。&lt;br /&gt;只能输入m~n位的数字：。&quot;^\d{m,n}$&quot;&lt;br /&gt;&lt;br /&gt;
只能输入零和非零开头的数字：&quot;^(0|[1-9][0-9]*)$&quot;。&lt;br /&gt;只能输入有两位小数的正实数：&quot;^[0-9]+(.[0-9]{2})?$&quot;。&lt;br /&gt;只能输入有1~3位小数的正实数：&quot;^[0-9]+(.[0-9]{1,3})?$&quot;。&lt;br /&gt;只能输入非零的正整数：&quot;^\+?[1-9][0-9]*$&quot;。&lt;br /&gt;只能输入非零的负整数：&quot;^\-[1-9][]0-9&quot;*$。&lt;br /&gt;只能输入长度为3的字符：&quot;^.{3}$&quot;。&lt;br /&gt;只能输入长度为3至20位的字符：&quot;^\w{3,20}$&quot;。&lt;br /&gt;只能输入由26个英文字母组成的字符串：&quot;^[A-Za-z]+$&quot;。
只能输入由26个大写英文字母组成的字符串：&quot;^[A-Z]+$&quot;。&lt;br /&gt;只能输&lt;img src =&quot;http://blog.csdn.net/Moon_F/aggbug/3065025.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/Moon_F/223479882/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/Moon_F/223479882/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 13 Oct 2008 03:40:00 +0800</pubDate><author>Moon_F</author><comments>http://blog.csdn.net/Moon_F/archive/2008/10/12/3065025.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Moon_F/archive/2008/10/12/3065025.aspx</guid><dc:creator>Moon_F</dc:creator><fs:srclink>http://blog.csdn.net/Moon_F/archive/2008/10/12/3065025.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/Moon_F/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/Moon_F/~7362581/223479882/5472087</fs:itemid></item><item><title>网页常用的美化-JavaScript</title><link>http://blog.csdn.net/Moon_F/archive/2008/10/12/3064965.aspx</link><wfw:comment>http://blog.csdn.net/Moon_F/comments/3064965.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Moon_F/comments/commentRss/3064965.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3064965</trackback:ping><description>网页常用Javascript 1．让文字不停地滚动 　　＜MARQUEE＞滚动文字＜/MARQUEE＞ 2．记录并显示网页的最后修改时间 　　＜script language=Javascript＞ 　　document.write(&quot;最后更新时间: &quot; + document.lastModified + &quot;&quot;) 　　＜/script＞ 3．关闭当前窗口 　　＜a href=&quot;/&quot;onClick=&quot;javascript:window.close();return false;&quot;＞关闭窗口＜/a＞ 4．5秒后关闭当前页 　　＜script language=&quot;Javascript&quot;＞ 　　＜!-- 　　setTimeout('window.close();',5000); 　　--＞ 　　＜/script＞ 5．2秒后载入指定网页 　　＜head＞ 　　＜meta http-equiv=&quot;refresh&quot; content=&quot;2;URL=http://你的网址&quot;＞ 　　＜/head＞ 6．添加到收藏夹 　　＜script Language=&quot;Javascript&quot;＞ function bo&lt;img src =&quot;http://blog.csdn.net/Moon_F/aggbug/3064965.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/Moon_F/223479883/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/Moon_F/223479883/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 13 Oct 2008 03:29:00 +0800</pubDate><author>Moon_F</author><comments>http://blog.csdn.net/Moon_F/archive/2008/10/12/3064965.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Moon_F/archive/2008/10/12/3064965.aspx</guid><dc:creator>Moon_F</dc:creator><fs:srclink>http://blog.csdn.net/Moon_F/archive/2008/10/12/3064965.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/Moon_F/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/Moon_F/~7362581/223479883/5472087</fs:itemid></item><item><title>Javascript document.all用法</title><link>http://blog.csdn.net/Moon_F/archive/2008/10/11/3058047.aspx</link><wfw:comment>http://blog.csdn.net/Moon_F/comments/3058047.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Moon_F/comments/commentRss/3058047.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3058047</trackback:ping><description>代码2：        但是常常name可以相同(如:用checkbox取用户的多项爱好的情况)   代码3：        理论上一个页面中的id是互不相同的，如果出现不同tags有相同的id    document.all.id   就会&lt;img src =&quot;http://blog.csdn.net/Moon_F/aggbug/3058047.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/Moon_F/223479884/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/Moon_F/223479884/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 12 Oct 2008 02:46:00 +0800</pubDate><author>Moon_F</author><comments>http://blog.csdn.net/Moon_F/archive/2008/10/11/3058047.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Moon_F/archive/2008/10/11/3058047.aspx</guid><dc:creator>Moon_F</dc:creator><fs:srclink>http://blog.csdn.net/Moon_F/archive/2008/10/11/3058047.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/Moon_F/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/Moon_F/~7362581/223479884/5472087</fs:itemid></item><item><title>JS: onfocus和onblur事件应用举例</title><link>http://blog.csdn.net/Moon_F/archive/2008/10/11/3058025.aspx</link><wfw:comment>http://blog.csdn.net/Moon_F/comments/3058025.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Moon_F/comments/commentRss/3058025.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3058025</trackback:ping><description>一. onfocus（获得焦点事件）当一个文本框获得焦点时，它里面的文本就像“好123”网站上的百度搜索输入框那样全部被自动选中，这样的操作可以利用onfocus来实现。以下的文本框，当鼠标指针移过去时，里面的文字全部被选中：请输入网址 这是怎么做的呢？看以下代码及解释：代码里，input标签内嵌入了onmousemove（鼠标指针经过）事件的JS语句，其等号后面的this.focus()意为其自身获得焦点；获得焦点的标志是该文本框内将出现输入光标，但要让其内的文字全部被选中，我们还得用上this.select()语句，它的意思就是选中全部文本框里的文字。二. onblur（失去焦点事件）我们经常会检测文本框是否已经被正确输入，检测工作通常在用户点击了提交按钮之&lt;img src =&quot;http://blog.csdn.net/Moon_F/aggbug/3058025.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/Moon_F/223479885/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/Moon_F/223479885/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 12 Oct 2008 02:38:00 +0800</pubDate><author>Moon_F</author><comments>http://blog.csdn.net/Moon_F/archive/2008/10/11/3058025.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Moon_F/archive/2008/10/11/3058025.aspx</guid><dc:creator>Moon_F</dc:creator><fs:srclink>http://blog.csdn.net/Moon_F/archive/2008/10/11/3058025.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/Moon_F/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/Moon_F/~7362581/223479885/5472087</fs:itemid></item><item><title>.Net下调用SQL Server2000中存储过程</title><link>http://blog.csdn.net/Moon_F/archive/2008/10/11/3057998.aspx</link><wfw:comment>http://blog.csdn.net/Moon_F/comments/3057998.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Moon_F/comments/commentRss/3057998.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3057998</trackback:ping><description>&lt;br /&gt;首先，在SqlServer中创建存储过程，在调用时分为有参数和没有参数两种情况，先就简单的没有参数的情况简要的介绍：&lt;br /&gt;&lt;br /&gt;　　假设存储过程如下：　 &lt;br /&gt;        CREATE PROC SelectAll&lt;br /&gt;&lt;br /&gt;　　AS&lt;br /&gt;&lt;br /&gt;　　SELECT * FROM StudentInf&lt;br /&gt;&lt;br /&gt;　　则此sp的调用如下：&lt;br /&gt;&lt;br /&gt;　　SqlCommand selectCMD = new SqlCommand(“SelectAll”, conn);&lt;br /&gt;　　//conn 为SqlConnection&lt;br /&gt;&lt;br /&gt;　　selectCMD.CommandType = CommandType.StoredProcedure;&lt;br /&gt;&lt;br /&gt;　　如果需要将结果集加到某个DataAdapter上，则可如下：&lt;br /&gt;&lt;br /&gt;　　SqlDataAdapter stuDA = new SqlDataAdapter();&lt;br /&gt;　　stuDa.SelectCommand = &lt;img src =&quot;http://blog.csdn.net/Moon_F/aggbug/3057998.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/Moon_F/223479886/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/Moon_F/223479886/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 12 Oct 2008 02:25:00 +0800</pubDate><author>Moon_F</author><comments>http://blog.csdn.net/Moon_F/archive/2008/10/11/3057998.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Moon_F/archive/2008/10/11/3057998.aspx</guid><dc:creator>Moon_F</dc:creator><fs:srclink>http://blog.csdn.net/Moon_F/archive/2008/10/11/3057998.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/Moon_F/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/Moon_F/~7362581/223479886/5472087</fs:itemid></item><item><title>用C#做个简单的计时器（秒表功能）</title><link>http://blog.csdn.net/Moon_F/archive/2008/10/11/3057984.aspx</link><wfw:comment>http://blog.csdn.net/Moon_F/comments/3057984.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/Moon_F/comments/commentRss/3057984.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3057984</trackback:ping><description>先在窗口中加入一个计时器控件：（timer1）用于触发计时；一个Label控件：（bable1）用于显示时间；两个按钮：（btnStar）用于开始／停止计时，（btnClear）用于计时器清零。&lt;br /&gt;&lt;br /&gt;        声明一个整型变量：t，用于获取毫秒，然后在窗口代码中加入以下代码：&lt;br /&gt; private int t = 0;                        void MainFormLoad(object sender, System.EventArgs e)        {            this.timer1.Enabled = false;            this.timer1.Interval = 1;        }                    //计时函数         public string GetAllTime(int time)             {            string hh, mm, ss, fff;                              int f &lt;img src =&quot;http://blog.csdn.net/Moon_F/aggbug/3057984.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/Moon_F/223479887/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/Moon_F/223479887/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 12 Oct 2008 02:22:00 +0800</pubDate><author>Moon_F</author><comments>http://blog.csdn.net/Moon_F/archive/2008/10/11/3057984.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/Moon_F/archive/2008/10/11/3057984.aspx</guid><dc:creator>Moon_F</dc:creator><fs:srclink>http://blog.csdn.net/Moon_F/archive/2008/10/11/3057984.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/Moon_F/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/Moon_F/~7362581/223479887/5472087</fs:itemid></item></channel></rss>