上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
2009年7月24日
摘要: There may be times when an object you are working with returns an XmlDocument object that you would like to bind to a server control such as a DataGrid. Because an XmlDocument cannot be bound directly... 阅读全文
posted @ 2009-07-24 15:09 dongpo 阅读(337) 评论(0) 推荐(0) 编辑
2009年7月13日
摘要: class ThreadDemo { private Thread[] threads; private int thrs = 10;//线程数量 private ArrayList stringList; private event EventHandler OnNumberClear;//数据删除完引发的事件 public ThreadDemo(int number) { st... 阅读全文
posted @ 2009-07-13 17:24 dongpo 阅读(1026) 评论(0) 推荐(0) 编辑
2009年7月10日
摘要: 这是类里的方法,执行完全没有问题的public override SqlDataReader GetSqlDataReader(string Sql, params SqlParameter[] commandParameters) { SqlDataReader sdr = null; using (SqlConnection connection = GetSqlConnection()) {... 阅读全文
posted @ 2009-07-10 13:42 dongpo 阅读(2078) 评论(2) 推荐(0) 编辑
2009年6月22日
摘要: 在查询分析器中执行如下的代码:Use Master Exec sp_dropextendedproc N'xp_cmdshell' Go 阅读全文
posted @ 2009-06-22 14:27 dongpo 阅读(168) 评论(1) 推荐(0) 编辑
2009年6月8日
摘要: 今天卸载瑞星后出现:1、CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files… ‘Access is denied.’拒绝访问.2、还可能会出现:Provider 错误 '8000400... 阅读全文
posted @ 2009-06-08 12:13 dongpo 阅读(370) 评论(0) 推荐(0) 编辑
2009年5月31日
摘要: 电子邮件能让访问者方便地向网站提供反馈或联系信息。它可以自动填写抄送和密件抄送,甚至能自动填充主题行。下面介绍如何定制Mailto功能。  实现Mailto的基本html代码:  <ahref="mailto:stephen.zhaoyf@163.com">点击这里发邮件给站长!</a>  当访问者点击这个链接时,会调用他们客户端的email程序,并在收件人框中自动填上收件... 阅读全文
posted @ 2009-05-31 15:28 dongpo 阅读(2004) 评论(0) 推荐(0) 编辑
2009年5月4日
摘要: 首先在项目中添加引用Microsoft Word 11.0 Object Library,如下图:添加如下方法:public string CreateWordFile(string CheckedInfo) { string message = ""; try { Object Nothing = System.Reflection.Missing.Value; Directory.Create... 阅读全文
posted @ 2009-05-04 17:36 dongpo 阅读(1198) 评论(0) 推荐(0) 编辑
2009年4月29日
摘要: 一、排序 1 获取DataTable的默认视图 2 对视图设置排序表达式 3 用排序后的视图导出的新DataTable替换就DataTable (Asc升序可省略,多列排序用","隔开) DataView dv = dt.DefaultView; dv.Sort = "id Asc,name Desc"; dt = dv.ToTable(); 二、检索 1 设置查询字符串 2 使用Select... 阅读全文
posted @ 2009-04-29 10:18 dongpo 阅读(1189) 评论(0) 推荐(0) 编辑
2009年4月28日
摘要: 一、 Cache概述 既然缓存中的数据其实是来自数据库的,那么缓存中的数据如何和数据库进行同步呢?一般来说,缓存中应该存放改动不大或者对数据的实时性没有太多要求的数据。这样,我们只需要定期更新缓存就可以了。相反,如果缓存的更新频率过快的话,使用缓存的意义就不是很大了,因此更新缓存的时候需要一次性从数据库中读取大量的数据,过于频繁地更新缓存反而加重了数据库的负担。 那么ASP.NET... 阅读全文
posted @ 2009-04-28 16:48 dongpo 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Cache 即高速缓存 ,我想很多人对他的第一印象一定像我一样,感觉他一定能提高系统得性能和运行速度。的确.Net推出cache的初衷确实是这样的。那么cache是如何提高系统性能与运行速度呢?是不是在任何情况下用cache都能提高性能?是不是cache用的越多就越好呢?我在近期开发的项目中有所体会,写下来当作总结也希望能跟大家一起探讨探讨,有错误的地方希望大家批评指正。 1. Cache... 阅读全文
posted @ 2009-04-28 16:09 dongpo 阅读(227) 评论(1) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页