數組|最大值 如何取得數組中的最大值(由71port_80連接埠提供) 該函數的作用是取得一組數組中最大的一個值,非常實用且精典,值得收藏!snum="345,231,56,786,1100,356,1200,300,685,111,134,765" function GetMax(str)num=split(str,",")max=num(0)for ii=0 to ubound(num)if
asp.net 在ASP.NET中實現Model-View-Controller模式(五) 測試將模型部分從ASP.NET環境中分離出來能夠使模型部分更容易的被測試。在ASP.NET環境中進行測試的話,你必須同時測試很多方面,如HTML代碼是否正確,而讀取HTML代碼的工作是非常煩悶的。將模型部分分離出來,使你能夠對模型部分做單獨的單元測試。下面是NUnit (http://nunit.org)對模型部分進行單元測試的例子。using
asp.net|縮圖 當我們要上傳圖片的時候,往往需要產生縮圖,以往我們要使用第三方控制項才能完成。在asp.net中用下面方法輕鬆搞定<script language="VB" runat="server">Sub Page_Load(sender As Object, e As EventArgs)Dim image,aNewImage As System.Drawing.Imagedim
asp.net Using Parentheses with Method CallsIn ASP, you could freely call methods on objects without using parentheses, as shown below: Sub WriteData() Response.Write "This is data"End SubWriteDataIn
asp.net|緩衝|資料|資料庫 ASP.NET 資料庫緩衝依賴By Peter A. Bromberg, Ph.D. 在ASP.NET中,Cache類最酷的特點是它能根據各種依賴來良好的控制自己的行為。以檔案為基礎的依賴是最有用的,檔案依賴項是通過使用 Cache.Insert 並提供引用檔案的 CacheDependency 對象添加的 Cache.Insert("MyData", Source, new
asp.net INTRODUCTIONThis article describes the event log entries that you can find when you use Microsoft ASP.NET. MORE INFORMATIONThe following list describes the different types of event log entries that you may experience
asp.net ASP.NET Pre-Compilation and Keep-Alive 1、Pre-Compilation in WhidbeyASP.NET一大特色就是Dynamic Compilation,但是有些場合Pre-Compilation卻是更好的選擇,比如,你不想訪問你的網站的第一個使用者癡癡的等待,或者你根本不想把任何源碼(包括HTML的內容)給你的使用者。Pre-Compilation在ASP.NET