- 博客(60)
- 资源 (1)
- 收藏
- 关注
原创 使用Windows 计划任务调用bat档处理删除文件夹
由于近期我们的项目的buildServer上频繁编译发布, 造成C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files 文件夹有过多的文件存在, 这样的结果会将我们的系统盘占去很多不必要的空间; 而且我们使用的TFS进行code control, 不知怎的,每次我们从TFS 上获取latest versio
2010-04-20 10:51:00 3626
转载 [SQL Server]幾種分頁(Paging)
以下介紹幾種在SQL Server上簡單的分頁做法,大致分為三種:1.Order By搭配not in2.Temp Table3.ROW_NUMBER() function 以下以Northwind資料庫作為範例:Order By搭配not in1Select Top 10 CustomerID, Co
2012-09-18 17:25:40 547
原创 forbid user to shrink winform or exit using message correlation mechanism
If you want to forbid user to shrink current model form, the best way is windows message mechanism, or you want to exit current form once user double click on that form, then you can use it to perform
2012-09-07 15:27:55 383
原创 05 trigger the checkbox column in datagridview
when user wanna to check or uncheck on datagridview of VS2005, these events will be triggered as below list: 'Private Sub datagridView_CurrentCellDirtyStateChanged(ByVal sender As Object, ByVal e
2012-03-22 17:38:45 364
原创 C#得到当前solution root path
If you have solution named "PrinterSln" and its sub project called CallPriner, currently you wan to get the root path of cur project, so can reference this method as below;String rootPath = AppDomai
2012-03-12 15:15:24 733
原创 Print xls file using excel COM component
We can use windows API to print txt file out or those files which can be opened by txt, if you wan to print xls file out, u must invoke printing function inside office excel, so currently we need to a
2012-03-06 15:40:23 1048
转载 Sqlserver useful information
DECLARE @dt datetime SET @dt=GETDATE() DECLARE @number int SET @number=3 --1.指定日期该年的第一天或最后一天 --A. 年的第一天 SELECT CONVERT(char(5),@dt,120)+'1-1' --B. 年的最后一天 SELECT CON
2011-11-02 15:05:50 471
转载 Configuring Visual Studio to Debug .NET Framework Source Code
It's finally here - the launch of the .NET Reference Source project. This post (hopefully!) contains everything you need to know. Over the past few weeks, we ran a pilot of this feature and collecte
2011-10-27 16:37:01 788
转载 使用 VS2010 在 SQL 2008 R2 上进行应用开发
数据应用层程序(Data-Tier Application Component, DAC)是SQL Sever 2008 R2的一大功能亮点,结合使用Visual Studio 2010,可以帮助开发人员和数据库管理员比以前更加有效的开发、部署、管理应用程序的数据层。数据库应
2011-08-25 16:23:28 856
原创 The difference between EXISTS and IN upon Oracle
The process flow of EXISTS like as below:select * from t1 where exists ( select null from t2 where y = x ) So we can understand it like
2011-08-17 14:55:21 500
转载 Using SQL Server's XML Support
QL Server's XML support has some fundamental limitations that make it difficult to use in certain situations. In this section, we'll explore
2011-08-15 13:51:14 396
原创 Write log file with .net
If you need to moniter DLL file which dont run and must been called by another application or solution, at this time i believe it is neccess
2011-07-13 08:37:46 385
转载 VB.NET下的事件和委托
委托是可用于调用其他对象方法的对象。它们有时被称为类型安全函数指针,因为它们与其他编程语言中所使用的函数指针相似。但不同于函数指针,Visual Basic .NET
2011-04-25 14:28:00 1013
原创 AsyncFileUpload File Type and File Size Validation using VB.NET
File Type and File Size Validation using VB.NET
2010-12-15 15:34:00 1405
原创 Timer Objects in Windows Services with C#.NET
How use a timer in a Windows service with VS IDE
2010-12-15 15:21:00 485
原创 Developing Windows Services
How create a new windows service with .Net 2003 and how to debug it
2010-12-15 14:56:00 427
原创 Problem in connecting VS 2005 to SQL Server 2008
Error from VS2005 when connection SQL server 2008 database instance
2010-12-14 15:21:00 457
转载 How to select the data type in SQLserver database such as varchar, nvarchar
依据何标准选择数据类型如 varchar or nvarchar
2010-12-10 13:46:00 593
转载 The difference of the type of DB type property such char,varchar,nchar and nvarchar
Validation on SQLserver data type including char,varchar,nchar and nvarchar, Pls. see the whole artical...
2010-12-10 13:41:00 351
转载 SqlServer2k,2005 如何读取xml的方法
描述如何在Sqlserver中读取XML文本中的数据,以及读取过程中sqlserver2k 与 2005在语法上的异同
2010-11-09 16:26:00 625
转载 parentElement 和 offsetParent 之间的区别
JavaScript 中parentElement 和 offsetParent 区别介绍
2010-07-02 15:46:00 423
转载 用asp.net设计高效邮件列表_邮件服务器
网站内容吸引到用户以后,网站的更新信息或者网站最新新闻就有必要及时通知浏览者,以此来紧紧抓住浏览者,培养浏览者的“浏览忠诚度”。这就是网站邮件列表的作用;
2010-06-30 14:05:00 629
转载 ASP.NET 应用ReportViewer 控件
任何数据驱动型的应用程序都有一个普遍的需求,那就是报表。 但是,在ASP.NET 1.x中并没有给我们提供这个非常重要的特性。 然而很幸运的是,伴随着.NET 2.0而来的ReportViewer控件可以满足你对报表的一些基本需求。 我将会在本文中向你演示如何使用这个控件。 ReportViewer控件既可以在web程序中使用,也可以在windows程序中使用。 在这里,我将只介绍如何在web程序中使用它。
2010-06-29 14:46:00 562
原创 C# 传值关键字Ref 与 Out 之比较
最近也研究了Ref 与Out 关键字在做方法入参时的区别, 现在写出来以备:在C# 中, 我们可以通过值[By Value]也可以通过引用[By Reference]传递参数。通过引用传递参数允许函数成员更改参数的值,并保持该更改。若要通过引用传递参数, 可使用 ref 或 out 关键字。ref和out这两个关键字能够提供相似的功效,其作用也很像C中的指针变量。它们的区别是:1. 使用ref
2010-04-20 10:38:00 616
原创 VSTS 2008 利用NPOI组件实现将 DataSource 导出成 excel
年前一段时间被派了一个task,针对用POI 在.Net上的应用组件,实现将.NET中的DataSource导出在Excel中.放假前就做了一个有模有样的User Control出来,现在正供user UAT以及体验呢. 下来我简单介绍下此UserControl的实现细节 [编程语言:VB.NET]A, 暂且命名该控件为:ExportNPOIExcel.ascx
2010-02-21 16:07:00 721
转载 asp.net跳转页面的三种方法比较
1、 response.redirect 这个跳转页面的方法跳转的速度不快,因为它要走2个来回(2次postback),但他可以跳 转到任何页面,没有站点页面限制(即可以由搜狐跳到CCTV),同时不能跳过登录保护。但速度慢是其最大缺陷!redirect跳转机制:首先是发送一个http请求到客户端,通知需要跳转到新页面,然后客户端在发送跳转请求到服务器端。需要注意的是跳转后内部空间保存的所有数据信
2009-11-04 19:54:00 251
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人