Weitere ähnliche Inhalte
Ähnlich wie Asp net (1) (20)
Kürzlich hochgeladen (15)
Asp net (1)
- 4. ASP.NET快取機制 - 全頁快取
<%@ OutputCache Duration="60" VaryByParam="*" %>
http://localhost/page.aspx?a=1
http://localhost/page.aspx?a=2
- 5. ASP.NET快取機制 - 自訂區域快取
<%
if (false && Cache["cahced_list"] != null)
{
Response.Write(Cache["cahced_list"]);
}
else
{
Cache["cahced_list"] = "Generated List Data
"+DateTime.Now;
Response.Write(Cache["cahced_list"]);
}
%>
- 8. 2011/03/21 討論備忘
1. 選課前置作業
1. 選課資料預先轉換成JSon
1. 通識:所有學生相同選課資料
2. 體育:所有學生相同選課資料
3. 院訂:依照適用系所
4. 軍訓:所有學生相同選課資料
5. 專業:依照適用系所
6. 存放路徑:${WebApp}/cache/course/[1-5]/(dept_no)
/dataset.json
2. JSon file structure:
{ cname: "憲法與立國精神", cno: "學期課號", cteacher: "陳
克紹", cweek: "1/8", ctype: "二專", clocation: "A002教室", ...
其它隱藏資料 }