1 / 17

Application State and User Management

Application State and User Management. เอกสารประกอบการบรรยายรายวิชา 204200 Browser-Based Application Development. วัตถุประสงค์. นักศึกษาสามารถอธิบายแนวคิดและใช้ประโยชน์ Application State แบบต่างๆ ได้ นักศึกษาสามารถอธิบายแนวคิดและใช้ประโยชน์ User Management ของ ASP.NET 2.0.

nuru
Download Presentation

Application State and User Management

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. Application State and User Management เอกสารประกอบการบรรยายรายวิชา204200Browser-Based Application Development

  2. วัตถุประสงค์ • นักศึกษาสามารถอธิบายแนวคิดและใช้ประโยชน์ Application State แบบต่างๆ ได้ • นักศึกษาสามารถอธิบายแนวคิดและใช้ประโยชน์ User Management ของ ASP.NET 2.0

  3. แผนการเรียนการสอน

  4. Topics • ViewState • Form Fields • PostBackURL • QueryString • NavitageURL • Server.Transfer • Redirect • Session • Application • Cookies • Profile

  5. ViewState: In the Same Page • Add ViewState.Add(“Key”, “Value”); • Use ViewState[“Key”].ToString();

  6. Form Fields: Between Pages • Add • Use TextBox1.Text TextBox1

  7. PostBackURL: Between Pages • Add • Use Request.Form["TextBox1"].ToString(); TextBox1

  8. QueryString: Between Pages • Add URL?key=value • Use Request.QueryString[“key”]

  9. NavigateURL: Between Pages • Add NavigateURL: URL?key=value • Use Request.QueryString[“key”]

  10. Server.Transfer: Between Pages • Add Response.Redirect(“URL?key=value”); • Use Request.QueryString[“key”]

  11. Response.Redirect: Between Pages • Add NavigateURL: URL?key=value • Use Request.QueryString[“key”]

  12. Session: Between Pages, Adjacency Independent, Until Close Brower • Add Session[“key”] = value; • Use Session[“key”].ToString();

  13. Application: Between Pages, Adjacency Independent, Cross Session • Add Application[“key”] = value; • Use Application[“key”].ToString();

  14. Cookies: Between Pages, Adjacency Independent, Cross Session, One User • Create HttpCookie MyCookie = new HttpCookie(“SUT”); MyCookie.Values.Add(“Key”, “Value”); Response.Cookies.Add(MyCookie); MyCookie.Expires • Use Request.Cookies[“SUT”][“Key”].ToString();

  15. Profile: Member Profile • Create Web.config <Profile> <Properties> <add name=“FirstName”> <add name=“LastName”> </Properties> </Profile> Profile.Key = Value; • Use Profile.Key.ToString();

  16. Homework • http://msdn.microsoft.com/asp.net/reference/multimedia/ • Getting Started with Visual Web Developer 2005 Express EditionLesson 11: Building a Quiz Engine 1Lesson 12: Building a Quiz Engine 2Lesson 13: Building a Quiz Engine 3Lesson 14: Building a Quiz Engine 4

  17. Dae Jung Guem • วุฒติพล

More Related