<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[办法总比困难多]]></title>
        <image>
        <title>http://hi.baidu.com</title>
        <link>http://hi.baidu.com</link>
        <url>http://img.baidu.com/img/logo-hi.gif</url>
        </image>
<description><![CDATA[程序人生,美妙生活]]></description>
<link>http://hi.baidu.com/senty</link>
<language>zh-cn</language>
<generator>www.baidu.com</generator>
<ttl>5</ttl>


<item>
        <title><![CDATA[C#中声明类/属性/方法已过时--(Obsolete)]]></title>
        <link><![CDATA[http://hi.baidu.com/senty/blog/item/494a3901f86bde047aec2c66.html]]></link>
        <description><![CDATA[
		
		<p><tt><font face="新宋体"><strong>Obsolete</strong></font></tt> 属性将某个程序实体标记为一个建议不再使用的实体。每次使用被标记为已过时的实体时，随后将生成警告或错误，这取决于属性是如何配置的。例如：</p>
<span >
<div class="libCScode" >
<div class="CodeSnippetTitleBar">
<div class="CodeDisplay"> </div>
</div>
<div dir="ltr" style="background-color: rgb(221,221,221)">
<pre class="libCScode" space="preserve">[System.Obsolete(&quot;use class B&quot;)]
class A
{
    public</pre></div></div></span> <a href="http://hi.baidu.com/senty/blog/item/494a3901f86bde047aec2c66.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/senty/blog/category/%B3%CC%D0%F2%C8%CB%C9%FA">程序人生</a>&nbsp;<a href="http://hi.baidu.com/senty/blog/item/494a3901f86bde047aec2c66.html#comment">查看评论</a>]]></description>
        <pubDate>2009-10-20  12:08</pubDate>
        <category><![CDATA[程序人生]]></category>
        <author><![CDATA[盛天]]></author>
		<guid>http://hi.baidu.com/senty/blog/item/494a3901f86bde047aec2c66.html</guid>
</item>

<item>
        <title><![CDATA[javascript:instanceof的妙用]]></title>
        <link><![CDATA[http://hi.baidu.com/senty/blog/item/e92887d6c9a7742606088be2.html]]></link>
        <description><![CDATA[
		
		在javascript中，我们判断一个变量的类型时，经常会使用typeof，但它只能返回一些原始的类型：string,number,boolean等，当判断的对象是引用类型时，无论是引用的什么类型，统统会返回object，这样我们无法知道该对象的具体引用类型，这时instanceof就很有用了，如下面代码：<br>
<br>
&lt;script&gt;<br>
var t = new Array();<br>
var a = [];<br>
alert(t instanceof Array);&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;//output:true<br>
alert(a instanceof Array);&#160;&#160; &#160;&#160;&#160; &#160;&#160; <a href="http://hi.baidu.com/senty/blog/item/e92887d6c9a7742606088be2.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/senty/blog/category/%B3%CC%D0%F2%C8%CB%C9%FA">程序人生</a>&nbsp;<a href="http://hi.baidu.com/senty/blog/item/e92887d6c9a7742606088be2.html#comment">查看评论</a>]]></description>
        <pubDate>2009-09-02  17:12</pubDate>
        <category><![CDATA[程序人生]]></category>
        <author><![CDATA[盛天]]></author>
		<guid>http://hi.baidu.com/senty/blog/item/e92887d6c9a7742606088be2.html</guid>
</item>

<item>
        <title><![CDATA[使用Serializable轻松实现类实例的序列化]]></title>
        <link><![CDATA[http://hi.baidu.com/senty/blog/item/a1f3352a4e7f8a315343c1b4.html]]></link>
        <description><![CDATA[
		
		<p>在工作流平台设计时，需要使用到类实例的序列化，在C＃中可以很容易的实现。</p>
<p><br>
<strong>一、首先引用几个命名空间</strong><br>
<br>
<font color="#0b5394">using System.IO;<br>
using System.Runtime.Serialization;<br>
using System.Runtime.Serialization.Formatters.Binary;</font></p>
<p><strong><font color="#000000">二、定义可序列化的类</font></strong></p>
<p><font color="#0b5394">[Serializable]<br>
public class Student<br>
{<br>
&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;  private string </font></p> <a href="http://hi.baidu.com/senty/blog/item/a1f3352a4e7f8a315343c1b4.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/senty/blog/category/%B3%CC%D0%F2%C8%CB%C9%FA">程序人生</a>&nbsp;<a href="http://hi.baidu.com/senty/blog/item/a1f3352a4e7f8a315343c1b4.html#comment">查看评论</a>]]></description>
        <pubDate>2009-08-06  10:16</pubDate>
        <category><![CDATA[程序人生]]></category>
        <author><![CDATA[盛天]]></author>
		<guid>http://hi.baidu.com/senty/blog/item/a1f3352a4e7f8a315343c1b4.html</guid>
</item>

<item>
        <title><![CDATA[.NET2.0使用SMTP发邮件的方法]]></title>
        <link><![CDATA[http://hi.baidu.com/senty/blog/item/f6aa6b63368b22690d33fa38.html]]></link>
        <description><![CDATA[
		
		<p> </p>
<p><font size="+0">System.Net.Mail是.NET2.0新增的组件，利用它可以很方便实现邮件的收发，下面是通过SMTP发送邮件的方法</font></p>
<p><strong>//先引用命名空间</strong><br>
<font style="background-color: #c0c0c0">using System.Net.Mail;</font></p>
<p><strong>//方法一：纯代码的方法</strong><br>
<font style="background-color: #c0c0c0">MailMessage message = new MailMessage();<br>
message.From = new MailAddress(&quot;</font></p> <a href="http://hi.baidu.com/senty/blog/item/f6aa6b63368b22690d33fa38.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/senty/blog/category/%B3%CC%D0%F2%C8%CB%C9%FA">程序人生</a>&nbsp;<a href="http://hi.baidu.com/senty/blog/item/f6aa6b63368b22690d33fa38.html#comment">查看评论</a>]]></description>
        <pubDate>2009-07-10  10:09</pubDate>
        <category><![CDATA[程序人生]]></category>
        <author><![CDATA[盛天]]></author>
		<guid>http://hi.baidu.com/senty/blog/item/f6aa6b63368b22690d33fa38.html</guid>
</item>

<item>
        <title><![CDATA[SQLServer索引不能不说的痛]]></title>
        <link><![CDATA[http://hi.baidu.com/senty/blog/item/d081720e456a6ec27acbe121.html]]></link>
        <description><![CDATA[
		
		<p>这里有一个用户表(Users)，建了几个索引，如图1，我在OrganId字段上建了一个索引<strong>Index_User_2</strong></p>
<p><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/senty/pic/item/2faac93d444b76e39e3d622f.jpg"><br>
(图1)</p>
<p>现在来看看下面的执行计划：</p>
<p><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/senty/pic/item/b559af51f548f9ab8d543039.jpg"><br>
(图2)</p>
<p>从图中可以看出来，<strong>根本没应用到Index_User_2索引</strong>，而是应用</p> <a href="http://hi.baidu.com/senty/blog/item/d081720e456a6ec27acbe121.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/senty/blog/category/%B3%CC%D0%F2%C8%CB%C9%FA">程序人生</a>&nbsp;<a href="http://hi.baidu.com/senty/blog/item/d081720e456a6ec27acbe121.html#comment">查看评论</a>]]></description>
        <pubDate>2009-05-16  16:06</pubDate>
        <category><![CDATA[程序人生]]></category>
        <author><![CDATA[盛天]]></author>
		<guid>http://hi.baidu.com/senty/blog/item/d081720e456a6ec27acbe121.html</guid>
</item>

<item>
        <title><![CDATA[C#定义事件的三种方式]]></title>
        <link><![CDATA[http://hi.baidu.com/senty/blog/item/a367b745d895a72ecffca38c.html]]></link>
        <description><![CDATA[
		
		定义一个事件,可以有三种方式吧: <br>
1: <br>
public   event   EventHandler   SomeEvent; <br>
<br>
2: <br>
public   event   EventHandler &lt;EventArgs&gt;   SomeEvent; <br>
<br>
3: <br>
public   delegate   void   EventDelegate(EventArgs); <br>
public   event   EventDelegate   SomeEvent; 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/senty/blog/category/%B3%CC%D0%F2%C8%CB%C9%FA">程序人生</a>&nbsp;<a href="http://hi.baidu.com/senty/blog/item/a367b745d895a72ecffca38c.html#comment">查看评论</a>]]></description>
        <pubDate>2009-03-15  14:35</pubDate>
        <category><![CDATA[程序人生]]></category>
        <author><![CDATA[盛天]]></author>
		<guid>http://hi.baidu.com/senty/blog/item/a367b745d895a72ecffca38c.html</guid>
</item>

<item>
        <title><![CDATA[使用sp_executesql输出参数]]></title>
        <link><![CDATA[http://hi.baidu.com/senty/blog/item/afb290ef59c5b9e8ce1b3ec9.html]]></link>
        <description><![CDATA[
		
		<p><br>
DECLARE @SQL NVARCHAR(MAX)<br>
DECLARE @SumValue INT<br>
SET @SQL = N'SELECT @SumValue = Sum(Money) FROM CONTRACT'<br>
execute sp_executesql @SQL,N'@SumValue INT OUTPUT',@SumValue OUTPUT<br>
print @v_SumValue</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/senty/blog/category/%B3%CC%D0%F2%C8%CB%C9%FA">程序人生</a>&nbsp;<a href="http://hi.baidu.com/senty/blog/item/afb290ef59c5b9e8ce1b3ec9.html#comment">查看评论</a>]]></description>
        <pubDate>2008-11-12  11:29</pubDate>
        <category><![CDATA[程序人生]]></category>
        <author><![CDATA[盛天]]></author>
		<guid>http://hi.baidu.com/senty/blog/item/afb290ef59c5b9e8ce1b3ec9.html</guid>
</item>

<item>
        <title><![CDATA[SQL Server中动态执行SQL语句]]></title>
        <link><![CDATA[http://hi.baidu.com/senty/blog/item/5d6d36d3dc89a5073bf3cf3e.html]]></link>
        <description><![CDATA[
		
		<h3>使用 <font style="background-color: #0a246a" color="#ffffff">sp_executesql</font></h3>
<p>建议使用 <strong><font style="background-color: #0a246a" color="#ffffff">sp_executesql</font></strong> 而不要使用 EXECUTE 语句执行字符串。支持参数替换不仅使 <strong><font style="background-color: #0a246a" color="#ffffff">sp_executesql</font> </strong>比 EXECUTE 更通用，而且还使 <strong><font style="background-color: #0a246a" color="#ffffff">sp_executesql</font></strong> 更有效，因为它生成的执行计</p> <a href="http://hi.baidu.com/senty/blog/item/5d6d36d3dc89a5073bf3cf3e.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/senty/blog/category/%B3%CC%D0%F2%C8%CB%C9%FA">程序人生</a>&nbsp;<a href="http://hi.baidu.com/senty/blog/item/5d6d36d3dc89a5073bf3cf3e.html#comment">查看评论</a>]]></description>
        <pubDate>2008-11-07  17:42</pubDate>
        <category><![CDATA[程序人生]]></category>
        <author><![CDATA[盛天]]></author>
		<guid>http://hi.baidu.com/senty/blog/item/5d6d36d3dc89a5073bf3cf3e.html</guid>
</item>

<item>
        <title><![CDATA[SQL server2005中插入汉字变成问号的解决办法]]></title>
        <link><![CDATA[http://hi.baidu.com/senty/blog/item/0a04d933775b3c45ac4b5f1c.html]]></link>
        <description><![CDATA[
		
		关于SQL server2005中插入汉字变成问号的解决办法，经过网友的提示与自己的摸索，总结如下： <br>
<br>
1、右击你所建的数据库，点击&ldquo;属性&rdquo;，选择&ldquo;选项&rdquo;并点击。将其中的排序规则设置为：Chinese_PRC_CI_AS(选择下拉列表框即可设置)，然后&ldquo;确定&ldquo;。 <br>
<br>
2、在表中将你的汉字字段的数据类型设置为nvarchar型或ntext型，设置前最好先将表中的数据全部删除。（不要使用varchar或text型，因为它们只会继续使你的数据乱码）。 <br>
<br>
3、设置好后，关闭服务器，再重新启动，就可生效了。 <a href="http://hi.baidu.com/senty/blog/item/0a04d933775b3c45ac4b5f1c.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/senty/blog/category/%B3%CC%D0%F2%C8%CB%C9%FA">程序人生</a>&nbsp;<a href="http://hi.baidu.com/senty/blog/item/0a04d933775b3c45ac4b5f1c.html#comment">查看评论</a>]]></description>
        <pubDate>2008-10-21  11:50</pubDate>
        <category><![CDATA[程序人生]]></category>
        <author><![CDATA[盛天]]></author>
		<guid>http://hi.baidu.com/senty/blog/item/0a04d933775b3c45ac4b5f1c.html</guid>
</item>

<item>
        <title><![CDATA[百度推出C2C“有啊”，首体验]]></title>
        <link><![CDATA[http://hi.baidu.com/senty/blog/item/85b2728bdbac5414c9fc7a02.html]]></link>
        <description><![CDATA[
		
		<a href="http://youa.baidu.com/">http://youa.baidu.com</a>　 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/senty/blog/category/%B1%A6%B1%B4%B5%EA%C6%CC">宝贝店铺</a>&nbsp;<a href="http://hi.baidu.com/senty/blog/item/85b2728bdbac5414c9fc7a02.html#comment">查看评论</a>]]></description>
        <pubDate>2008-10-21  11:11</pubDate>
        <category><![CDATA[宝贝店铺]]></category>
        <author><![CDATA[盛天]]></author>
		<guid>http://hi.baidu.com/senty/blog/item/85b2728bdbac5414c9fc7a02.html</guid>
</item>


</channel>
</rss>