ASP.NET 3.5程式設計第9次上課這次上課主要是用實例解說ASP.NET提供的重要物件: Cookie、Session、Applaction,也提到Response+Request+Server物件, 以上六個物件與ASP、JSP、PHP的使用是相同的,所以若能掌握以上六個物件, 對於未來處理其他網頁呈式有很大的幫助。 最後也補充非常重要的觀念,就是如何存取文字檔案, 我覺得這部分的重要性不會低於資料庫的存取, 以往一般人在學習成式的時候,都會以資料庫存取為目標, 但資料庫的存取對一般人來說,真的有點複雜, 光了解資料庫就很花時間,但相對文字檔非常簡易, 只要記事本就能產生。若是簡單資料,建議用文字檔即可, 例如計數器的總數,存在Applaction 伺服氣重開機就消失, 存在資料庫又有點麻煩,若存成文字檔就非常適合。 但要如何讀寫文字檔呢? 1.宣告+引用FSO物件(其實他就是DLL檔)。 2.用FSO的OpenTextFile方法開啟文字檔。 3.讀取檔案內的文字到字串變數中。 4.變數+1 5.寫回去文字檔案。 6.記憶體中請除FSO物件。 以上是FSO物件的使用流程。課程影音: 01cookies新增&讀取02coolie多鍵03sessiond登入&登出04Applaction物件計數器&Session 05將計算器改成圖檔06用FSO開啟文字檔案——————————————- 公告: 此影音課程謹提供本班學員復習用,非學校必須提供課程服務, 是老師私下提供,勿再向外傳送,若非學員請勿加入論壇,敬請悉知。 吳老師教學網: 3cc.cc 部落格: terry55wu.blogspot.com 論壇: groups.google.com YOUTUBE: ASP.NET 3.5,吳清輝老師,文化大學,推廣部,人力加值,程式設計,WEB2.0,線上教學
Categories
- Asp.Net Tutorials (1677)
- Computer Tutorials (2090)
- Flash Tutorials (1000)
- Game Tutorials (824)
- JSP Tutorials (380)
- Photoshop Tutorials (2019)
- PHP Tutorials (1015)
- Uncategorized (7)
- VB Tutorials (501)
- Website Designing Tutorials (732)
Recent Tutorials
- PHP Simple Login Script (Procedural)
- Jack’s Java tutorials – 2 – Variables and Classes
- Call Of Duty Black Ops 15th Prestige Hack PS3 Xbox 360 PC
- Lets Play: DOSBoX: World of Xeen – 37: Now onto Asp…Seriously…
- how to create fake antivirus in Visual Basic 2008
- Black Ops- 1-15 Prestige HACK DOWNLOAD (All Emblems) Call of Duty UPDATED 19.11.10!!!
- Cross map tomahawk Black Ops
- Equilibrium’s Xbox360 Repair Tutorial[Part 4] Main Focus: Re-assembly and Final Analysis
- Free rider 2 – Down and Uphill [´li-me-ted]
- Using PHP MYADMIN in cPanel to Manage MYSQL databases
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.