Common ASP.NET Code Techniques (DPC&dwc Reference)--2

asp.net Figure 2.1Output of Listing 2.1.1 when viewed through a browser.Adding Elements to an ArrayListIn Listing 2.1.1 we create two ArrayList class instances, aTerritories and aStates, on lines 5 and 6, respectively. We

在ASP.NET中擷取檔案屬性

asp.net 在ASP.NET中擷取檔案屬性(Retrieving File Information In ASP.NET)By Steven

在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

Office XP Charting Examples in asp.net

asp.net|chart Imports OWC.StimGraph.Helper  Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

利用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 Web Application快速入門(1)(轉載)

application|web|快速入門 什麼是 ASP.NET Application ? ASP.NET這麼定義Application:它是運行在Web應用伺服器上的一個虛擬目錄及其子目錄下的所有檔案、頁面、模組以及可執行代碼的總和。比如說,一個叫做"order"的application可能就是Web伺服器的一個"/order"虛擬目錄。虛擬目錄可以通過Internet Services

.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的朋友看看這個吧,大家常問的如Request等問題解答得很清楚

asp.net|request|解答|問題 Migrating to ASP .NET: Key ConsiderationsJim KieleyMicrosoft CorporationJuly 2001Summary: This article explores some basic considerations for moving existing ASP applications to the ASP .NET environment

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中使用AdRotator控制項(轉)

asp.net|控制項 在ASP.NET中使用AdRotator控制項通過使用ASP.NET攜帶的AdRotator伺服器控制項,ASP.NET中的廣告可以隨時顯示出來。本文中,我們將看到兩個例子,它們使用這個控制項在一個頁面上顯示廣告。 使用AdRotator伺服器控制項有以下幾個步驟: 第一步 建立一個包含著廣告細節的XML檔案,比如說叫art008_ads.xml,它包含以下元素:

總頁數: 1638 1 .... 1063 1064 1065 1066 1067 .... 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.