1 / 10

網頁間資料共用

網頁間資料共用. 網頁間資料共用. Application (Server 端 ) 所有網頁使用者共用,跨所有使用者與網頁 Session (Server 端 ) 由特定使用者使用 ViewState (Client 端 ) 只保留同一個網頁 page 的資訊,切換網頁後沒有作用. 網頁間資料共用 - Application. ASP.NET 應用程式的全域變數 Application[ “ 鍵值名稱 ” ]= 資料 ; 使用 Server 端資源 可以寫在 Global.asax 裡面 當一個使用者修改了 Application ,所有人都受影響.

iliana
Download Presentation

網頁間資料共用

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 網頁間資料共用

  2. 網頁間資料共用 • Application (Server端) 所有網頁使用者共用,跨所有使用者與網頁 • Session (Server端) 由特定使用者使用 • ViewState (Client端) 只保留同一個網頁page的資訊,切換網頁後沒有作用

  3. 網頁間資料共用 - Application • ASP.NET應用程式的全域變數 • Application[“鍵值名稱”]=資料; • 使用Server端資源 • 可以寫在Global.asax裡面 • 當一個使用者修改了Application,所有人都受影響

  4. 網頁間資料共用 - Application

  5. 網頁間資料共用 - Application WebForm1

  6. 網頁間資料共用 - Session • 工作階段狀態管理 • 依附於瀏覽器 • 使用Server端資源 • Session[“鍵值名稱”]=資料; • 可以寫在Global.asax裡面

  7. 網頁間資料共用 - Session WebForm1

  8. 網頁間資料共用 - ViewState • 在同一網頁中才有作用 • 使用Client端資源 • ViewState[“鍵值名稱”]=資料;

  9. 網頁間資料共用 - ViewState

  10. 網頁間資料共用 - ViewState WebForm1

More Related