<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>周公的专栏 - asp.net</title><link>http://blog.csdn.net/zhoufoxcn/category/246301.aspx</link><description>有关asp.net开发探讨。</description><dc:language>zh-CN</dc:language><lastUpdateTime>Tue, 07 Oct 2008 10:51:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>周公</dc:creator><title>asp.net夜话之六：asp.net基本控件</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/10/06/3019670.aspx</link><pubDate>Mon, 06 Oct 2008 08:36:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/10/06/3019670.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/3019670.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/10/06/3019670.aspx#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/3019670.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3019670</trackback:ping><description>asp.net服务器控件是微软为了方便开发者开发而推出的一系列控件，它们都以类似的方式出现在Visual Studio 2005的源视图里，*代表了控件名，如就表示这是一个Button控件。asp.net服务器控件除了提供HTML服务器控件所能提供的功能之外，还有很多功能更为复杂的控件。这些控件可以分为简单控件、容器控件、数据绑定控件、数据源控件和数据验证控及用户自己根据自己业务需要将一些控件组合在一起组成的用户控件等。asp.net控件的特点与HTML服务器控件类似，也有如下特点：(1)asp.net服务器控件必须有一个在当前页面中唯一的ID属性和runat=”server”属性；(2)asp.net服务器控件必须放在服务器端表单中；(3)asp.net服务器控件最终会被解释成普通HTML标记发送到客户端浏览器。本文主要介绍以下控件：Button控件TextBox控件Web服务器控件的特殊客户端事件FileUpload控件Literal控件Panel控件PlaceHolder控件&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/3019670.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>asp.net夜话之五：Page类和回调技术</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/09/28/2990318.aspx</link><pubDate>Sun, 28 Sep 2008 08:04:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/09/28/2990318.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2990318.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/09/28/2990318.aspx#Feedback</comments><slash:comments>20</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2990318.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2990318</trackback:ping><description>在今天我主要要介绍的有如下知识点：Page类介绍：介绍单页模型和页面、代码分离模型。Page的生命周期：介绍Page类个各个生命周期还有Page生命周期内的一些相关事件。IsPostBack属性：用于判断当前页面是否是响应客户端回发。ClientScriptManager类：用于动态向当前页面注册javascript脚本的类。回调技术(CallBack)：通过回调实现在客户端调用服务器端方法而不用提交整个表单。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2990318.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>Asp.net夜话之四：Visual Studio 2005中容易被忽略的技巧</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/09/22/2959316.aspx</link><pubDate>Mon, 22 Sep 2008 09:08:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/09/22/2959316.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2959316.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/09/22/2959316.aspx#Feedback</comments><slash:comments>36</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2959316.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2959316</trackback:ping><description>本文介绍了在Visual Studio 2005中一些不太为人知的技巧和工具，比如任务管理器、代码段管理器的使用，还有如何发布网站，如何配置外部工具等等，还介绍了一般企业开发中利用解决方案来组织项目文件这种通用做法。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2959316.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>asp.net夜话之三：表单和控件</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/09/18/2944967.aspx</link><pubDate>Thu, 18 Sep 2008 07:56:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/09/18/2944967.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2944967.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/09/18/2944967.aspx#Feedback</comments><slash:comments>30</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2944967.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2944967</trackback:ping><description>本文介绍HTML表单方面的知识，并捎带提及了乱码问题，在文中还提出了SQL注入问题，并且对HTML服务器控件做了一些初步的探讨，有关服务器控件的知识接下来的篇幅中还会继续探讨。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2944967.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>Asp.net夜话之二：asp.net内置对象</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/09/15/2930049.aspx</link><pubDate>Mon, 15 Sep 2008 00:15:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/09/15/2930049.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2930049.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/09/15/2930049.aspx#Feedback</comments><slash:comments>15</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2930049.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2930049</trackback:ping><description>准确地说，asp.net并没有内置对象这一说，jsp里确实把request、response这些当作jsp的内置对象，这里只不过是借用了一下jsp的说法而已。上面提到的很多都是在做asp.net开发时无需new就能使用的对象（类似的还有很多，在asp.net中所有的网页都是继承自System.Web.UI.Page这个类，上面的提到多是Page类的属性）。本文介绍System.Web.UI.Page类的几个常用属性，如Request、Response、Server、Session、Cookie、Application，并讲述了及表达式用法。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2930049.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>Asp.net夜话之一：asp.net介绍</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/09/12/2915811.aspx</link><pubDate>Fri, 12 Sep 2008 08:36:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/09/12/2915811.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2915811.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/09/12/2915811.aspx#Feedback</comments><slash:comments>13</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2915811.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2915811</trackback:ping><description>题外话：去年至今年以来，陆续写过一些原创的文章了，很多是对原来所做项目的总结。所以并不是很系统很全面，都是针对某个知识点或者某个具体应用写的，有些朋友建议我把自己的体会写成一个系统的，这次算是一个尝试吧，写得不好的地方请大家尽量抛西红柿不要丢砖头。之所以把这个系列叫做《asp.net夜话》，是有一些原因的，某不厌酒喜茶，酒越喝越糊涂，茶喝多了也仍然能保持清醒。白天很忙，所以每天回到家之后我会沏一壶茶，边喝茶边看书，偶有心得体会就会用文字记录下来，过一段时间之后再将这些文字整理一下，觉得语句还算通畅的就发表在博客上了。这个关于asp.net系列的文章将会都在晚上完成，所以我叫它《asp.net夜话》。这个系列偏重于实际于asp.net开发实战中的理论和经验方面的介绍。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2915811.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>.net2.0中对config文件的操作方法总结</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/08/24/2823508.aspx</link><pubDate>Sun, 24 Aug 2008 15:29:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/08/24/2823508.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2823508.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/08/24/2823508.aspx#Feedback</comments><slash:comments>17</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2823508.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2823508</trackback:ping><description>在.net编程中，我们经常用到config文件来保存一些常用的应用程序配置信息，在WinForm中这个文件名字是app.config，在asp.net中叫web.config。这个.config文件其实就是一个xml文件，对它的读操作微软已经提供了一个类来实现了，这个类就是System.Configuration.ConfigurationManager，下面分别是例子：//读取config里名称为“conn”数据库连接信息     connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["conn"].ConnectionString;//读取config里名称为"Font_Size"的应用程序配置信息System.Configuration.ConfigurationManager.AppSettings["Font-Size"] = 9;不过利用这个类却不能对config文件进行写操作。对于config文件的写操作，很多人通过xml的方式来进行，按照xml&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2823508.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>在asp.net中备份还原SQL Server数据库</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/08/19/2796077.aspx</link><pubDate>Tue, 19 Aug 2008 15:11:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/08/19/2796077.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2796077.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/08/19/2796077.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2796077.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2796077</trackback:ping><description>在web中，安全性主要体现在两个方面：一个是程序安全性，即防止网页在插入恶意代码；另一个是数据库安全性，这个我们可以经常备份数据库来实现。在文中，我将演示如果在网页中备份和恢复数据库。其实备份和恢复数据库都是利用SQL Server提供的SQL语句来备份的。备份：use master;backup database @name to disk=@path;恢复：use master;restore database @name from disk=@path;上面用的是参数化SQL语句，可以在程序执行的时候动态给参数赋值。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2796077.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>.net类库中发送电子邮件的方法总结</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/08/09/2789413.aspx</link><pubDate>Sat, 09 Aug 2008 08:26:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/08/09/2789413.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2789413.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/08/09/2789413.aspx#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2789413.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2789413</trackback:ping><description>发送电子邮件是许多需要用户注册的网站的通用功能，通过正则表达式我们可以过滤掉不符合电子邮件格式的输入，但是仍没有办法确保用户填写的电子邮件地址一定是他本人真实有效的电子邮件地址，通常验证电子邮件真实有效的办法是：当用户填写的注册资料经过网站初步格式验证之后，用户并不能利用此帐号登录，系统会向用户注册时填写的电子邮件地址发送一封电子邮件，邮件中给出一个链接，只有当用户点击了这个链接之后才能登录到网站，如果用户填写的电子邮件地址不是真实有效的或者不是他本人的，就不会收到这封电子邮件，这样仍然不能登录，这一步一般称之为电子邮件激活。在.net类库中有两种发送电子邮件的方式，一种是在.net2.0以下版本中的做法，一种是.net2.0以上版本的做法。下面分别介绍这两种办法。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2789413.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>GridView导出到Excel或Word文件</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/05/16/2450642.aspx</link><pubDate>Fri, 16 May 2008 10:10:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/05/16/2450642.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2450642.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/05/16/2450642.aspx#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2450642.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2450642</trackback:ping><description>在项目中我们经常会遇到要求将一些数据导出成Excel或者Word表格的情况，比如中国移动（我是中国移动用户）网上查话费的页面中就有一个导出到Excel的功能，光大网上银行查看历史明细也有这些功能....，原本以为这个问题不难的，不过看到网上经常有朋友问，于是我整理了一下，供大家参考。

需要说明的是：在asp.net2.0环境下，VerifyRenderingInServerForm(Control control)这个方法不override的话，则会出现“错误提示:类型“GridView”的控件“GridView1”必须放在具有 runat=server 的窗体标记内”这个错误。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2450642.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>.NET牛人应该知道些什么</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/05/09/2425420.aspx</link><pubDate>Fri, 09 May 2008 21:49:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/05/09/2425420.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2425420.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/05/09/2425420.aspx#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2425420.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2425420</trackback:ping><description>前些日子我发了一份ASP.NET面试题 清单. 有一些访客比较保守，觉得我是没事找事，里面都是些很琐碎的问题。剩下的人则说“蛮不错的，我得去看一看其中的一些问题” 我更喜欢后者的回复，我觉得后者才是正确的态度。  

当然我并不想把.NET软件开发概括为一些简单的小问题，我只是想让大家多思考。我相信一个真正优秀的ASP.NET（及WinForm）开发人员应该不仅仅会拖放控件到设计器中，也应该掌握更多的东西。一个优秀的赛车比赛选手很了解他自己的坐驾，他知道哪些可以做？哪些不能做？  

所以我准备了另外一份清单——一份扩展的清单，供你使用。这是我上个星期在从博伊西去波特兰的路上写在一块板上的，并且我也考虑到了那些觉得我的清单过于琐碎的意见，试图把这个清单按节管理。如果你从来没有深入ASP.NET，你肯定不会知道所有ASP.NET问题的答案。如果你是一个独立顾问，你可能从来没有遇到过这些概念。但在我呆在科林斯的这4年中，这些问题我都遇到过。因此，是否全面理解这些问题也许与你是不是一个优秀的开发者没有关系，但在遇到问题时它的确可以帮你节省不少时间。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2425420.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>ASP.NET中常用输出JS脚本的类（改进版）</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/04/21/2312440.aspx</link><pubDate>Mon, 21 Apr 2008 16:32:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/04/21/2312440.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2312440.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/04/21/2312440.aspx#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2312440.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2312440</trackback:ping><description>在ASP.NET中我们经常需要输出一些JS脚本，比如弹出一个警告窗口，返回到历史页面等JS功能，我看到网上流传得比较广的是马先光写的一个JScript类，这个类基本将经常用到的JS脚本包含了，非常方便，唯一的不足是作者采用的Response.Write(string msg)的办法，这样造成输出的js脚本在标签之外，破坏了原有XHTML的结构，所以本人在满足原功能的情况下，对JScript类做了进一步的改善，这个改善采用了重载的办法，增加了一个System.Web.UI.Page类的实例作为参数，不会影响原来的程序代码。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2312440.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>在VS2005利用NUnit进行测试</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/03/27/2222847.aspx</link><pubDate>Thu, 27 Mar 2008 13:24:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/03/27/2222847.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2222847.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/03/27/2222847.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2222847.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2222847</trackback:ping><description>一、介绍NUnit是一款用于在.net环境进行单元测试的工具，它的官方网站是：http://www.nunit.org，需要了解历史和下载最新版本的朋友可以去官方网站下载，目前最新版本是2.4.6了，提供msi安装文件和压缩包形式下载，并且支持.net1.1和.net2.0。本文通过一个简单的例子演示了如何使用NUnit进行单元测试，并且演示了如何将NUnit集成到VS2005中，方便我们利用VS2005进行单元测试。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2222847.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>log4net使用详解</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/03/26/2220533.aspx</link><pubDate>Wed, 26 Mar 2008 16:13:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/03/26/2220533.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2220533.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/03/26/2220533.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2220533.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2220533</trackback:ping><description>说明：本程序演示如何利用log4net记录程序日志信息。log4net是一个功能著名的开源日志记录组件。利用log4net可以方便地将日志信息记录到文件、控制台、Windows事件日志和数据库（包括MS SQL Server, Access, Oracle9i,Oracle8i,DB2,SQLite）中。并且我们还可以记载控制要记载的日志级别，可以记载的日志类别包括：FATAL（致命错误）、ERROR（一般错误）、WARN（警告）、INFO（一般信息）、DEBUG（调试信息）。要想获取最新版本的log4net组件库，可以到官方网站http://logging.apache.org/log4net/下载。现在的最新版本是1.2.10。下面的例子展示了如何利用log4net记录日志 。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2220533.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>周公</dc:creator><title>在ADO.NET中使用参数化SQL语句的大同小异</title><link>http://blog.csdn.net/zhoufoxcn/archive/2008/03/19/2195618.aspx</link><pubDate>Wed, 19 Mar 2008 01:26:00 GMT</pubDate><guid>http://blog.csdn.net/zhoufoxcn/archive/2008/03/19/2195618.aspx</guid><wfw:comment>http://blog.csdn.net/zhoufoxcn/comments/2195618.aspx</wfw:comment><comments>http://blog.csdn.net/zhoufoxcn/archive/2008/03/19/2195618.aspx#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://blog.csdn.net/zhoufoxcn/comments/commentRss/2195618.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2195618</trackback:ping><description>在ADO.NET中经常需要跟各种数据库打交道，在不实用存储过程的情况下，使用参数化SQL语句一定程度上可以防止SQL注入，同时对一些较难赋值的字段（如在SQL Server中Image字段，在Oracle中Clob字段等）使用参数化SQL语句很容易就能赋值，所以本人经常在ADO.NET中使用参数化SQL语句，近几年来陆续跟SQL Server/Oracle/ MySQL/Access打交道，积累了一些心得，现在整理出来供大家参考。&lt;img src ="http://blog.csdn.net/zhoufoxcn/aggbug/2195618.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>