ASP.NET 2.0中,新增加的membership provider功能,以及結合功能強大的一系列註冊,登陸控制項,可以很方便地對使用者的登陸和許可權等進行管理(參見<<ASP.NET 2.0登陸控制項簡介>>)。 但是,可能大家會發現,ASP.NET 2.0內建的這些登陸控制項和membership的管理功能,預設的是和sql server 2005 express搭配使用的,那麼,如何改成使用SQL Server 2000或者是其他的資料來源,如access,
動機:朋友跟我說他在公司實現了訊息提醒機制,我問他是怎麼實現的,他說採用定時調用 ajax 的方法來實現。我跟他說我在使用 web qq 時未曾看到系統有定時檢查是否有訊息,但奇怪的是只要一有訊息就能以最快的速度送達給你(從伺服器推送給戶端,不知語義上有沒有說錯,請大家指教)。今天周末,有時間想想簡單地實現這一功能,於是 google 後發現一則 5 分鐘的視頻,很快便瞭解了原理並用 asp.net 實現這一功能(因為那則視頻是用 php
Reusing Code with ASP Include Files and SubroutinesBy Nannette Thacker - 05/01/1999 I call it "Frankenstein" code when an author cuts and pastes the same snippet of code over and over throughout an application. What a maintenance nightmare!!!Later
Setting Up Your Own ASP Development TemplatesBy Nannette Thacker - 05/01/1999 After you've been working with ASP development for a while, you will find that there are standard things which you include in every web page. To avoid using "Frankenstein
ASP Driven HTML OutlinesBy Nannette Thacker - 08/13/1999 Have you ever wanted to create a web page in outline form? Here's how, using ASP Driven HTML and the Ordered List, <OL> command.I have created two forms of outline sub procedures. The
using System.IO; using System.Web; namespace SEC { /**//// /// 對檔案和檔案夾的操作類 /// public class FileControl { public FileControl() {} /**//// /// 在根目錄下建立檔案夾 /// /// 要建立的檔案路徑 public void CreateFolder(string FolderPathName) {
ASP.NET使用動態編譯技術,在運行時動態將同一目錄的*.aspx檔案先產生*.cs,然後調用CompilerServices將其編譯成assemblies(可以到你的%SYSTEMROOT%\Microsoft.NET\Framework\V1.x.xxxx\Temporary ASP.NET Files下面看看)。因此瞭解ASP.NET編譯的過程是最佳化ASP.NET運行效率的關鍵之一。以常用的資料繫結文法為例,我們可以發現它的轉化規則是:.aspx: data-binding