摘要:
sn -tp xxxx.snk >>result.txt">>" is the symbol to output dos output result to a text file.For example: you ran the command at C:/> directory.The result.txt file would be at C:\result.txt 阅读全文
摘要:
remoting object class class must inherits MarshalByRefObjectHost class Must add reference System.runtime.remoting Must add reference that remoting object class Imports System.Runtime.Remoting ... 阅读全文
摘要:
Recently I wanna practice some web service program. I stucked at one error The request failed with HTTP status 401:Unauthorized. .I had set up the credential in my code like following, so my program s... 阅读全文
摘要:
This article is for Visual Studio 2005.Step 1. steup your [TestFixture] and [Test]. And open the dll file from NUnit-GUI. The detail of Step 1 is shown here: http://www.tangent-studios.com/progra... 阅读全文
摘要:
Use ADO and the Jet OLEDB provider, which can read the contents of excel files without actually opening Excel.Example:'*******************************PublicSubConvertXLSToTab(ByValxlsFileNameAsString,ByValtabTextOutputFileAsString)DimconnectionStringAsString="Provider=Microsoft.ACE.OLEDB.12 阅读全文
摘要:
string NameOfFile = @"C:\Documents and Settings\Business Records\Employees.spr";string NameOfFile = "C:\\Documents and Settings\\Business Records\\Employees.spr"; 阅读全文
摘要:
现在我好象明白什么是JustInTimeActivation。 JustInTimeActivation 其实就是在客户端保存COM+里的实例的同时, 在服务器端保持一个记录客户端状态的实例。 对于客户端,这完全是透明的, 客户完全可以假想实例就在客户端的计算机内存里一样。 当客户端调用里面的方法时, 比如建立一个数据库连接。 服务器端就会激活对象, 这时对象就真的占用了数据连接。 当可户取得了数... 阅读全文
摘要:
Event Delegate 在好多地方多看到了,比如在学习web user control 的时侯,还有vb.net remoting object 的时候。 我看了不少文章后,也不是很明白。我在这里写下来,主要是为了我自己以后的回故。同时,也想让大家参考。 要理解event delegate, 当然要先明白什么是event. 其实简单的想,就是"回叫"的机制,她解决一个依赖的问题。 比如真实世... 阅读全文
摘要:
If drop an un-exist table, will get error "Table 'TempTable' does not exist."use the following function:Here is a function I use to check whether a table exists: Code: Function TableExists(TableName ... 阅读全文
摘要:
Method 1. sBorderColor is variable in vb code. Imports System.web.UI.WebControls Imports System.Web.UI.HtmlControls Public Class LoginControl Inherits System.Web.UI.UserControl Private ... 阅读全文