在ASP.NET中使用Session與Application 對象(續)

application|asp.net|session|對象 Figure 3 CachingThe amount of data you can reach at any level is different, but the right doses are determined on a per-application basis.Also different from layer to layer is the time needed to

利用ASP.NET來訪問Excel文檔

asp.net|excel|訪問|來訪 利用ASP.NET來訪問Excel文檔

我對.Net技術中asp.net應用的一點看法

asp.net 我是joy

ASP。NET連SQL7介面原始碼?

原始碼 The following example shows what a simple ADO.NET application that connects to the Northwind database and returns a list of Categories would look like. The example writes the output to the console, or command

ASP.NET中密碼保護,MD5和SHA1演算法的使用

asp.net|演算法 你的首頁或者你管理的網站有各種密碼需要保護,把密碼直接放在資料庫或者檔案中存在不少安全隱患,所以密碼加密後儲存是最常見的做法。在ASP.NET中實現加密非常容易。.NET SDK中提供了CookieAuthentication類,其中的HashPasswordForStoringInConfigFile方法可直接使用MD5和SHA1演算法。例子如下:file: encrypting.aspx<%@ Page

.NET之ASP Web Application快速入門(2) (轉載)

application|web|快速入門 Application的生存期一個ASP.NET application建立於伺服器第一次被請求時,在那之前不會有ASP.NET代碼在執行。接受第一次請求後,一個HttpApplication執行個體池被建立,並啟用了Application_OnStart事件。HttpApplication執行個體處理這個請求及隨後發生的請求,直到最後的執行個體退出,接著就觸發Application_OnEnd事件。

.NET之ASP WebApplication快速入門(5)(轉載)

application|web|快速入門 建立自訂HttpHandler 要自訂一個handler,可以執行IhttpHandler,並在config.web檔案的httphandlers一節中添加類資訊。下面舉例說明如何建立自訂一個HttpHandler,將所有的請求對應到"SimpleHandler.aspx"中: SimpleHandler[]點擊運行程式] | []查看原始碼]

.NET之ASP WebApplication快速入門(4)(轉載)

application|web|快速入門 Application 或 Session作用範圍內的對象在Global.asax檔案中,我們可以通過object標記定義靜態對象,這些對象可以是.NET架構類,也可以是經典的COM組件。其作用範圍可以是appinstance、session或者application中的任一種。如果一個對象的作用範圍是Appinstance,就表示這個對象明確屬於HttpApplication的一個執行個體,並且不被共用。

asp.net key considerations(二)

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 key considerations(三)

asp.net AuthorizationOnce your users have been authenticated, you can focus on authorizing what resources you would like them to have access to. The following sample shows access being granted to "jkieley" and "

ASP.NET中的注釋符號

asp.net <h1>' (single quote)</h1> The single quote character (') introduces a comment line in VB.NET code. It can be used anywhere on a source line. The end of the physical line ends the comment. <h1>Rem</

ASP.NET中發送Email完整執行個體(轉)

asp.net ASP.NET中發送Email完整執行個體本文舉例說明在ASP.NET中發送Email的眾多可能性,內容覆蓋了諸如Email格式、優先權、附件及Email編碼等方面。 ASP.NET被賦予了一個發送Email的新對象,名為SmtpMail。使用SmtpMail對象從ASP.NET頁面中發送Email時,可以遵循以下簡單步驟:

用ASP.NET加密口令(轉)

asp.net|加密 用ASP.NET加密口令每當我們要建立資料庫驅動的個人化的web網站時,都必須要保護使用者的資料。儘管駭客可以盜取個人的口令,然而更嚴重的問題是有人能夠盜走整個資料庫,然後立刻就是所有的口令。 原理 有一個好的做法是不將實際的口令儲存在資料庫中,而是儲存它們加密後的版本。當我們需要對使用者進行評鑑時,只是對使用者的口令再進行加密,然後將它與系統中的加密口令進行比較即可。

在ASP.NET中動態產生圖形(轉)

asp.net|動態|圖形 在ASP.NET中動態產生圖形.NET有一個很靈巧的特性,就是可以編寫代碼產生動態圖形,然後將產生的圖形儲存在磁碟上或者直接將其發送到用戶端的瀏覽器。 原理 用.NET產生圖形的功能封裝在System.Drawing名稱空間中,它支援多種圖形檔案格式,包括:JPEG、GIF、PNG、TIFF、BMP、PhotoCD、FlashPIX、WMF、EMF和EXIF。

ASP.NET中的代碼分離

asp.net|代碼分離 ASP.NET中包含了一種新方法:將商業邏輯代碼從表達代碼中分離出來。這通常被稱為背後的代碼,功能非常強大,並且非常容易執行。實現步驟就是:向ASP.NET 頁面中增加使用者介面元素,並為它們指定屬性“runat=server”。然後,用.NET語言建立一個類檔案來操作這些使用者介面元素。最後,在ASP.NET 頁面頂部增加一個指令,將使用者介面與操作它的類檔案附著在一起。

ASP.NET中的錯誤處理支援

asp.net|錯誤|錯誤處理 ASP.NET具有一個很好的新功能:它對已耗用時間錯誤的處理和跟蹤提供了豐富支援。特別是,它為管理員提供了一種很簡單的方法,可以保證那些令人恐懼的“ASP

Common ASP.NET Code Techniques (DPC&DWC Reference)--9

asp.net Figure 2.8An attractive error message is displayed if the user enters an invalid directory name.A useful property of the DirectoryInfo class (and the FileInfo class, which we'll examine in the next section,

Common ASP.NET Code Techniques (DPC&DWC Reference)--7

asp.net Figure 2.6Output of Listing 2.1.8 when viewed through a browser.The code in Listing 2.1.8 begins by creating three ArrayList collections: aTeam1, aTeam2, and aTeam3 (lines 5, 6, and 7, respectively). These three

Common ASP.NET Code Techniques (DPC&DWC Reference)--8

asp.net Figure 2.7Output of Listing 2.2.1 when viewed through a browser.When working with the various file system classes, it is often handy to import the System.IO namespace to save unneeded typing (line 1).Listing 2.2.1

asp.net最佳化(二)

asp.net|最佳化 Do not rely on exceptions in your code: Exceptions are very expensive and should rarely occur in your code. You should never use exceptions as a way to control normal program flow. If it is possible to detect in

總頁數: 1638 1 .... 1257 1258 1259 1260 1261 .... 1638 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.