Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be
複製代碼 代碼如下:using System; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using
以下函數採用FSO對象,檔案位置在FSO.ASP。FSO對象的檔案編碼屬性只有三種,系統預設,Unicode,ASCII,並沒有我們要的utf-8,所以一般中文系統上使用FSO對象產生的檔案都是gb2312網頁編碼格式,無法產生UTF-8編碼,因此,英文等拉丁語系和中文可以正常顯示,但象俄語等非拉丁語系,頁面就會出現亂碼。 複製代碼 代碼如下:function createfile(sfilename,scontent) set
if rs.bof then 表示:當前指標的位置是在第一行記錄之前 if rs.eof then 表示:當前指標的位置是在最後一行記錄之後 if not rs.eof then 表示:當前指標的位置沒有到達最後一條記錄 if not rs.bof then 表示:當前指標的位置沒有到達第一條記錄 ------------------------- ###推薦使用下面兩條 if not (rs.bof and rs.eof) then 表示:指標位於 RecordSet
水仙花數:一個三位整數各位元字的立方和等於該數本身就稱該數為水仙花數,水仙花數共有4個,分別為:153、370、371、407( 例如:1^3 + 5^3 + 3^3 = 153 )。我寫的代碼如下,你有其他的實現代碼也可以發表評論。 int i, m,n,k; for (i = 100; i < 1000; i++) { //取得百位元 m = i / 100; //取得十位元,這裡也可以用n = (i%100)/10; n = i/10%10;
程式健壯性最基本要求就是程式錯誤的處理與捕捉,在ASP.NET中,錯誤的處理有和其他程式設計語言一樣的機制,可以使用Try…Catch…Finally等方式,這一點和ASP相比具有較大的進步。而且,使用這些錯誤處理方法,可以大大提高程式的可讀性和程式調試速度,在這幾個優勢結合的情況下,我們更加應該注意這一點。 關於錯誤的處理,我們可以參考這篇文章: Try...Catch...Finally in ASP.NET Introduction Error handling in Classic
Recordset is another created/instanciated Object. It is a collection of data taken from a database. Recordset has 26 properties, 25 methods, 11 events, and two (2) collections. The vast majority of Recordset is beyond the scope of this web site.
作者:Dflying Chen (http://dflying.cnblogs.com/)註:本系列文章比較基礎,基本為Atlas官方文檔的翻譯,熟悉Atlas的朋友可以跳過。本系列有三篇文章:ASP.NET Atlas簡單控制項介紹——Sys.Component基類與Sys.UI.Control基類 ASP.NET Atlas簡單控制項介紹——InputControl,TextBox,Button和CheckBox ASP.NET
Asp.Net 2.0 實現多檔案上傳的方法【摘要】多檔案上傳的方法其實很簡單,在頁面上添加多個html檔案上傳控制項,就可在代碼中用如下語句System.Web.HttpContext.Current.Request.Files來取得頁面中的所有檔案上傳控年對象,然後調用 Files對象的SaveAs就可將多個檔案上傳上去,跟單檔案上傳沒有多大區別。【全文】如下程式碼範例,可將多個檔案上傳到伺服器,並顯示在表格中和列表框中,並可將列表框中選擇的檔案從伺服器刪除掉。[分頁檔HTML]<%@