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

asp.net Figure 2.5Output of Listing 2.1.5 when viewed through a browser.If you've worked with classic ASP, you are likely familiar with the concept of session-level variables. These variables are defined on a per-user basis

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

asp.net Figure 2.4Output of Listing 2.1.4 when viewed through a browser.Adding Elements to a QueueIn Listing 2.1.4, we begin by creating an instance of the Queue class, qTasks (line 5). In line 7 through 14, we add eight new

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

利用ASP.NET來訪問Excel文檔

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

在asp.net中調用Excel 檔案

asp.net|excel vb.net原始碼<%@ Page Language="VB" %><%@ Import Namespace="System.Data" %><%@ Import Namespace="System.Data.Oledb" %><script language="VB"

使用JScript.NET建立asp.net頁面(二)

asp.net|js|jscript|建立|頁面

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

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

十天學會ASP.net之第三天

asp.net 學習目的:掌握WEB控制項的使用(一) 或許你會問,為什麼需要WEB控制項?WEB控間就好像VB裡面的控間,可以在程式的任何地方引用,修改所有屬性,有了它的配合才能完成代碼分離。想一下,如果還是以前的HTML控間,我們當我們需要在某一個地方顯示一段資料庫的內容是不是只有用<%= %>這樣勢必在HTML包含了程式的代碼塊,就達不到分離代碼和介面的目的了。

十天學會ASP.net之第四天

asp.net 學習目的:掌握WEB控制項的使用(二)

用ASP.NET開發Web服務的五則技巧

asp.net|web|web服務|技巧 一、禁用HTTP POST/GET協議   除非另外指定,否則,.NET將試圖把Web服務綁定到三種協議:HTTP/POST、HTTP/GET和SOAP。之所以說“試圖”,是因為依賴於服務的參數和傳回型別,HTTP/GET協議可能不可用。.NET產生的WSDL檔案將自動包含綁定這三種協議的指令,客戶程式可以自由選擇使用哪種協議與服務通訊。

.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中的注釋符號

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中動態產生圖形(轉)

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

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,

ASP.NET: Dynamically set Text and Value fields for a DropDownList

asp.net This code was written in response to a message posted on one of Charles Carroll's ASP.NET lists. You can sign up for one or all of the lists here. Code: <%@ Page Language="VB" %><%@ Import Namespace=

總頁數: 1638 1 .... 1508 1509 1510 1511 1512 .... 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.