ASP.NET 21!!.! 21 ( day 2 ), Active Server Pages.NET (Web-based program -ming framework).,... ASP.NET. ASP. NET Active Server Pages ( ASP ),. ASP.NET,, ( ),.,.,, ASP.NET.? ASP.NET.. (, ).,. HTML.
24 ASP. ASP.NET, - ASP -. ASP.NET, ASP ASP.NET. ASP.NET ( ). HTML, ASP.NET. ASP.NET,. ASP.NET.? HTML.,..,,. Active Server Pages.,.? 2000 NT( 6 ). ASP.NET ME, 98,.
25, IIS 5 Personal Web Server..,.NET SDK.,., SQL OLE DB. DB.? 5 (23 ). ASP.NET : ASP.NET, ASP.NET, Visual Basic.NET.. ASP.NET.. ( )., ASP.NET,., XML,.,, ASP.NET.. ASP.NET,, (cell phone) PDA ASP.NET.,,.
26,,. day...,,,,.. placeholders.,, placeholder...,..,,,....., IT.,!
WEEK 1 ASP.NET,. ASP.NET : ASP.NET, ASP.NET,. ASP.NET ;. 1, ASP.NET.NET ASP.NET.,.
28 We e k 1 2 ASP.NET ASP.NET. ASP.NET ASP.NET. 3, Visual Basic.NET ASP.NET VB.NET.,,.! 4, C# VB.NET ASP.NET ASP.NET C#, ASP.NET,.. 5, ASP.NET (user interface).. 6,,. 7, ASP.NET Validation ASP.NET Validating., ASP.NET, (week) ASP.NET., ASP.NET!
DAY 1 ASP.NET Active Server Pages.NET! ASP.NET, HTML Microsoft.,.
30 We e k 1 ASP.NET,.,. ASP.NET., : /? Active Server Pages.NET? ASP.NET?.NET, ASP.NET? ASP.NET,? ASP.NET? ASP.NET Active Server Pages?..,, World Wide Web.,. HTML.,..,.,,,... (image rollover) (dropdown menu).
Da y 1 AS P.NET 3 1,. (server processing),,, (visitor demographics). ASP.NET., ASP.NET. / (client/server model),., ( ) ( ). (client) (server).. / (request/ response model), /. - HTML, -. ( ). [ 1.1]. 1.1 /
32 We e k 1,..,., 4 : 1. ( ) (www.microsoft.com ). 2. (index.html ). 3.. 4..,..,,? / (request/ response process).,,.. Common Gateway Interface (CGI) ASP Active Server Pages..,. : 1. ( ) (, www.microsoft.com). 2.. 3.,. 4. HTML. 5..
Da y 1 AS P.NET 33,. ASP.NET - (event-driven model).,.., /,,. -. (Benj amin Franklin),.,.,.,. ( ),. /. ASP.NET - -.!, ASP.NET?? ASP.NET - (client- side processing). HTML. HTML. [ 1.1].
34 We e k 1 1.1 1 <ht ml > 2 <head> 3 <scr i pt l anguage=" JavaScr i pt > 4 <!- - 5 al er t (" Hel l o Wor l d!" ) ; 6 / / - -> 7 </ scr i pt > 8 </ head> 9 <body> 10 Wel come t o my page! 11 </ body> 12 </ ht ml > (client- side scripting),. HTML. <script>,., 5 [ 1.2] Hello World!. 1.2.,. HTML.. [ 1.1]. [ 1.1].. -..
Da y 1 AS P.NET 35 [ 1.1] ( ). HTML., ASP.NET ( ).. ASP.NET ASP.NET?., ASP.NET.. ASP.NET.,.,.,.. ASP.NET (client- side scripts)... HTML.,,., ASP.NET.,..,. ASP.NET.
36 We e k 1.NET ASP.NET.NET?.NET.NET,,..NET ASP.NET. ASP.NET.NET,,.,. Common Language Runtime Common Language Runtime (CLR).,,., (Visual Basic ), (1 0). (, PCs, Macintoshes).,..NET..NET CLR., Microsoft Intermediate Language(MSIL, ).. ASP.NET MSIL. MSIL, (metadata)..,. MSIL,, - C#, Cobol, Perl,., MSIL.
Da y 1 AS P.NET 37,, Common Language Runtime (CLR). MSIL. CLR,.,,! [ 1.3].NET. 1.3.NET.N ET MSIL CLR,. Java Virtual Machine(JVM) (run-time environment)., JVM. CLR.., ( ).,.,.,.,!
38 We e k 1 CLR managed code. CLR, ( ). CLR unmanaged code. CLR.,,,,. ASP.NET.NET,..NET.NET..NET - ASP.NET,,.., System.Data, XML System.Xml.,. ASP.NET.,..NET. ASP.NET ASP.NET, : Internet Information Server (IIS).NET Framework Software Development Kit (SDK). 2000 6 NT 4. ASP.NET. [ 1.4]. ASP.NET..,,.
Da y 1 AS P.NET 39 1.4 IIS.NET SDK, ASP.NET., ASP.NET., ASP.NET..NET Framework SDK..NET, ASP.NET.,,.NET SDK. Internet Information Server Internet Information Server (IIS), 2000, NT. NT http :/ / www.microsoft.com/ msdownload/ ntoption -pack/ askwiz.asp NT.,. 2000 IIS 5.0. IIS 5.0, - - - / /., ([ 1.5] ). Internet Information Server (IIS) Next. FTP SMTP Details..... Next, 2000.
40 We e k 1 1.5 2000!. http :/ / localhost. IIS., http :/ / computername. computername., localhost. www.mysite.com. (www.networksolution.com)., IIS (Internet Services Manager, ISM). - - -. [ 1.6]. 1.6
Da y 1 AS P.NET 4 1. - -.,. (Advanced).. (Internet Services Manager, ISM), FTP SMTP.,..,. Home Directory. [ 1.7], Local Path. (root fol der) c:\ inetpub \ wwwroot.,., www.y oursit e.com, c:\ inetpub\ wwwroot., C, (c:\ inetpub\ wwwroot ). IIS. ASP.NET. 1.7 Home Directory
42 We e k 1 Cancel. ( ). c:\inetpub\wwwroot.,, (New menu) (Virtual Directory)., [ 1.8]. Next,.. Next.... Next Finish.. images, http :/ / localhost/ images. images., - c:\ inetpub\ wwwroot -.. ASP.NET. 1.8.
Da y 1 AS P.NET 43.NET Framework SDK.NET Framework SDK ASP.NET..NET Common Language Runtime (CLR). SDK www.microsoft.com/ NET. 100MB 56K 6. CD-ROM. SDK,. ([ 1.9] ). [ 1.10]. 1.9.NET Framework SDK 1.10.NET Framework SDK Next (agreement), Next. Next,.NET Next.,.NET Framework SDK., SDK..NET Framework SDK Documentation.
44 We e k 1 c:\ inetpub\ wwwroot MyPage.aspx (.aspx ASP.NET. ).,. [ 1.4].? ASP.NET? ASP.NET., http :/ / localhost/ MyPage.aspx ASP.NET. ASP.NET.. http:// localhost.. ASP.NET ASP.NET HTML..NET Framework SDK, ASP.NET. ASP.NET.aspx. ASP.NET default.aspx.aspx.. ( ). [ 1.2] (. ). 1.2 ASP.NET 1 <%@Page Language="VB" %> 2 3 <scr i pt r unat =" server"> 4 sub Page_Load (obj as obj ect, e as event ar gs ) 5 l bl Message. Text = " Wel come t o ASP.NET!" 6 end sub 7 </ scr i pt > 8 9 <ht ml ><body> 10 <asp :Label i d=" l bl Message" r unat =" server" / > 11 </ body></ ht ml >
Da y 1 AS P.NET 45 c:\ inetpub\ wwwroot day1, listing- 0102.aspx.. http :/ / localhost/ day1/ listing0102.aspx. [ 1.11]. 1.11 ASP.NET,. c:\inetpub\wwwroot\tyaspnet21days., 2 ASP.NET c:\inetpub\wwwroot\tyaspnet21days\day2. http://localhost/wwwroot/tyaspnet21days/day2. HTML.. [ 1.3]. 1.3 ASP.NET HTML 1 <ht ml ><body> 2 <span i d=" l bl Message" >Wel come t o ASP.NET!</ span> 3 </ body></ ht ml > listing0102.aspx ([ 1.2] )? ASP. NET MSIL (Microsoft Intermediate Language, ). CLR(Common Language Runtime, ),. [ 1.3]. ASP
46 We e k 1.NET HTML., HTML. ASP.NET., ASP.NET. (Microsoft Visual Basic InterDev).,,, HTML. ASP.NET. 6 21 ( ). (6.0 ).,.NET,., ASP.NET. (FrontPage). HTML., ASP.NET,. 2000 21 ( ).,.,. HoTMetaL.,.NET.
Da y 1 AS P.NET 47 ASP.NET [ 1.4] ASP.NET.. Submit. 1.4 1 <%@Page Language="VB" %> 2 3 <scr i pt r unat =" server"> 4 Sub t bmessage_change (Sender As Obj ect, E As Event Ar gs ) 5 l bl Message.Text = " Hel l o" + t bmessage.text 6 End Sub 7 </ scr i pt > 8 9 <ht ml ><body> 10 <f ont si ze=" 5" >Sam s Teach Your sel f ASP.NET i n 21 Days : 11 Day 2</ f ont ><hr><p> 12 <%Response.Wr i t e ("Our Fi r st Page<p>" )%> 13 14 <f orm r unat =" server" > 15 Pl ease ent er your name : 16 <asp :t ext box i d=" t bmessage" 17 OnText Changed=" t bmessage_change" 18 r unat =server / > 19 <asp :but t on i d="bt Submi t " Text =" Submi t " 20 r unat =server / ><p> 21 <asp :l abel i d=" l bl Message" f ont - si ze=" 20pt " 22 r unat =server / > 23 </ f orm> 24 </ body></ ht ml > listing0104.aspx c :\ inetpub\ wwwroot\ tyaspnet21days \ day1. http :/ / localhost/ tyaspnet21days/ day1/ listing0104. aspx. submit., [ 1.12] hello.
48 We e k 1 1.12 ASP.NET ASP.NET. <%@ Page %> ASP.NET. ASP.NET. 3-7., runat= server. ASP.NET, MSIL(Microsoft Intermediate Language, )., <script> HTML <head>... </head>., ASP.NET HTML. 9 HTML. (ASP.NET ). 12 <%. ASP.NET. ASP.NET.,,. 14 HTML. runat= server.,. ASP.NET ( ).
Da y 1 AS P.NET 49 16, 19, 21 HTML. HTML, ASP.NET. runat = server. ASP.NET.,. ASP ASP.NET ASP.NET Active Server Pages.,. ASP ASP.NET.. ASP ASP.NET. ASP ASP. ASP ASP.NET,., ASP ASP.NET., ASP.NET ASP ( ASP.NET ). ASP ASP IIS.,., ASP.NET.NET.,.NET ASP.NET. ASP 6, ASP.NET.
50 We e k 1, ASP. ASP, HTML., ASP.NET., ASP /. ASP.NET, ASP. ASP. ASP.NET,., ASP.NET., ASP. ASP ASP.NET,,. ASP.NET.,, COM. ASP DLL, REGSVR32.EXE. ASP.NET DLL..NET. Se s sion st at e ASP.,..., ( ), ASP session., session.
Da y 1 AS P.NET 5 1 ASP.NET session. ASP.NET session.,. ASP (, <%...%> ). ASP.NET.,. ASP, HTML.,.. ASP ASP.NET,. ASP.NET ASP, ASP.NET. ASP.NET (user st ate information) (requesting variable),., /,. ASP.NET. ASP (OOP : Object Oriented Programming),. OOP ASP.NET,. ASP.., ASP.NET. ASP.NET.
52 We e k 1.NET ASP.NET. ASP.NET. ASP.NET IIS.NET SDK. ASP.NET. ASP.NET...NET..NET MSIL(Microsoft Intermediate Language). CLR(Common Language Runtime) MSIL. ASP.NET. <% PAGE %>,,. ASP.NET., ASP.NET ASP. ASP.NET ASP,,.. ASP ASP.NET ASP.NET. ASP.NET. ASP.NET,.,.NET ASP.NET.
Da y 1 AS P.NET 53 Q&A Q..NET? A.....NET.NET., ASP.NET. ASP.NET. Q. ASP.NET? A.. ASP.NET... C# Visual Basic ASP.NET., ASP.NET.. A. 1. ASP.NET? 2. CLR? 3. (metadat a)? 4. ASP ASP.NET? 5. ASP.NET? 6. ASP.NET? 7. (Virtual Directory)?
54 We e k 1 8. hello.aspx c:\ inetpub\ wwwroot\ tyaspnet21days\ MyApplication? 9.? 1. ASP.NET?? 1 <%@Page Language="VB" %> 2 3 <scr i pt r unat =" server"> 4 sub Page_Load (obj as obj ect, e as event ar gs ) 5 l bl Message.Text = " Thi s i s my f i r st exer ci se!" 6 end sub 7 </ scr i pt > 8 9 <ht ml ><body> 10 <asp :Label i d = " l bl Message" r unat =" server" / > 11 </ body></ ht ml >