郝文标的博客

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

摘要: 简介无意中看到一篇好文章,现在转给大家,如果原作者不喜欢,请通知我一声。下面是正文。本文为您提供了在 Microsoft ADO.NET 应用程序中实现和获得最佳性能、可伸缩性以及功能的最佳解决方案;同时也讲述了使用 ADO.NET 中可用对象的最佳实践;并提出一些有助于优化 ADO.NET 应用程序设计的建议。本文包含: • 有关 .NET 框架包含的 .NET 框架数据提供程序的信... 阅读全文
posted @ 2008-05-06 12:50 恭喜发财 阅读(358) 评论(0) 推荐(0) 编辑

摘要: 我有好多文章都是在网上看到的,有的也没有出处,假如伤害了某位原著者,请和我联系,并请求您原谅我! 阅读全文
posted @ 2007-09-30 09:59 恭喜发财 阅读(353) 评论(0) 推荐(0) 编辑

2012年8月15日

摘要: 实现手机电话状态的监听,主要依靠两个类:TelephoneManger和PhoneStateListener。 TelephonseManger提供了取得手机基本服务的信息的一种方式。因此应用程序可以使用TelephonyManager来探测手机基本服务的情况。应用程序可以注册listener来监听电话状态的改变。我们不能对TelephonyManager进行实例化,只能通过获取服务的形式:Context.getSystemService(Context.TELEPHONY_SERVICE);注意:对手机的某些信息进行读取是需要一定许可(permission)的。主要静态成员常量:(它们对应P 阅读全文
posted @ 2012-08-15 10:09 恭喜发财 阅读(54822) 评论(0) 推荐(5) 编辑

2010年4月26日

摘要: declare @myxml xmlset @myxml='<?xml version="1.0" encoding="gb2312"?> <root> <item id="1"> </item> </root>'select @myxml--1、插入item的第一个子元素 set @myxml.modify('insert <co... 阅读全文
posted @ 2010-04-26 20:56 恭喜发财 阅读(324) 评论(0) 推荐(0) 编辑

2010年4月25日

摘要: 10月25日sql:variable() binding and modify method of xquery: insert XML DML/* In SQL Server 2005, we can use sql:variable and sql:column function to bind relational data into XML by means of xquery. Howe... 阅读全文
posted @ 2010-04-25 17:50 恭喜发财 阅读(395) 评论(0) 推荐(0) 编辑

2009年5月4日

摘要: 在WinForm中许多控件(本文以最常用的PictureBox为例)都有Image属性,如果该Image是一个动画Gif的话,它会自动运行动画。在某些场合,我们希望控制该动画的启停,此时我们首先想到了ImageAnimator,但实际使用时,我们发现以下指令根本不起作用,Gif停不下来,具体原因不明: ImageAnimator.StopAnimate(box.Image, new EventHa... 阅读全文
posted @ 2009-05-04 14:50 恭喜发财 阅读(704) 评论(0) 推荐(0) 编辑

2008年8月19日

摘要: Back_InZipFormat.zipIntroductionThis is SQL Server Backup and restore tool, the system will store the backup files in standard Zip format, the user-friendly screen let you backup and restore SQL Serve... 阅读全文
posted @ 2008-08-19 11:01 恭喜发财 阅读(448) 评论(0) 推荐(0) 编辑

摘要: sample:WorkingWithBLOBs.zipIntroduction:You can define a BLOB as a large photo, document, audio etc. saved in binary formats that you want to save in a database.Saving and retrieving BLOBs in a databa... 阅读全文
posted @ 2008-08-19 10:31 恭喜发财 阅读(412) 评论(0) 推荐(0) 编辑

2008年8月15日

摘要: static void Main(string[] args){// Retrieve the enumerator instance and then the data.SqlDataSourceEnumerator instance =SqlDataSourceEnumerator.Instance;System.Data.DataTable table = instance.GetDataS... 阅读全文
posted @ 2008-08-15 19:57 恭喜发财 阅读(431) 评论(0) 推荐(0) 编辑

摘要: 一.走进UDP协议:  UDP(UserDatagramProtocol)协议就是“用户数据报协议”,它是一种无连接的协议,无连接主要是和TCP协议相比较的。我们知道当利用TCP协议传送数据的时候,首先必须先建立连接(也就是所谓的握手)才可以传输数据。而当计算机利用UDP协议进行数据传输的时候,发送方只需要知道对方的IP地址和端口号就可以发送数据,而并不需要进行连接。当然如... 阅读全文
posted @ 2008-08-15 19:08 恭喜发财 阅读(2948) 评论(2) 推荐(2) 编辑

2008年8月6日

摘要: 背景资料赵 霖 教授 解放军总医院营养科 古人云食药一体,膳药同功,食物是最好的药物。看似简单的买菜做饭,其实蕴含着养生的奥妙。历代名医先贤对天然食物都有哪些精辟论述。食疗的功效到底是什么,健康教育首席专家赵霖教授激情论述凡膳皆药,寓医于食。 在古代吕氏春秋本味篇里边,有这么两句话,叫阳朴之姜,招摇之桂,姜指的什么,生姜,桂是指的什么啊,桂皮,我们在几千年以前,生姜和桂皮就已经是咱们的调料,而生姜... 阅读全文
posted @ 2008-08-06 11:07 恭喜发财 阅读(1296) 评论(0) 推荐(0) 编辑

2008年7月23日

摘要: 微软官方reportview参考:http://msdn.microsoft.com/zh-cn/library/ms251671.aspxhttp://www.gotreportviewer.com/需用代理 阅读全文
posted @ 2008-07-23 12:34 恭喜发财 阅读(546) 评论(0) 推荐(0) 编辑