AJAX應用情境
更豐富的UI
頁面分部分重新整理
對效能的影響
對異常處理的影響
IIS 7相容模式
擴充IIS 7架構
添加xml設定檔到
%SystemDir%\instsrv\config\schema
使用Microsoft.Web.Administration讀取
<configSchema>
<sectionSchema name="system.webServer/imageCopyright">
<attribute name="enabled" type="bool" defaultValue="false" />
<attribute name="message" type="string" defaultValue="Copyright Message" />
<attribute name="color" type="string" defaultValue="Red" />
<attribute name="cacheDuration" type="int" defaultValue="20" />
</sectionSchema>
</configSchema>
IIS 7編程
Microsoft.Web.Administration
ServerManager iisManager = new ServerManager();
foreach(WorkerProcess w3wp in iisManager.WorkerProcesses)
{
Console.WriteLine("W3Wp {0}", w3wp.ProcessId);
foreach(Request request in w3wp.GetRequests(0))
{
Console.WriteLine("{0}-{1},{2},{3}", request.Url, request.ClientIPAddr, request.TimeElapsed, request.TimeInState);
}
}