Upload
phamdien
View
220
Download
0
Embed Size (px)
Citation preview
1
ASP.NET ( C#)
CSIE, NTU
2
Outline
.NET Framework
3
Tang, Shih-Hsuan
2005/07/18 ~ 2005/07/29 PM 2:00 ~ 5:00
[email protected]/~r93057/csieTrain/aspnet127
4
5
Web
MSDN
6
ASP.NET 1.0 C#
ASP.NET
C#
Visual C# .NET
7
8
Outline
.NET Framework
9
Outline
.NET Framework
10
.NET Framework
Common Language Specification
ASP .NET(Web FormWeb Service Mobile Form)
Windows Form
ADO.NETXML
Base Class Library
J#C++C#VB
Common Language Runtime
11
CLR
Source Code
Intermediate Language Compiler
Assembly
Class Loader
Class Library
Just-In-Time Compiler
Native Code
12
CLR
(Assembly)
(Just-In-Time Compiler)
(Native Code Manager)
(Garbage Collection)
(Type Checker)
(Exception Manager)
(Thread Support)
(Debug Engine)
13
Windows FormWeb FormDataXML
14
ADO.NETXML
.NET Framework
XML
XML
15
.NET Framework
Windows FormWeb Form
Common Language Specification
C#VBC++J#
16
Internet Information Services (IIS)Apache
17
18
(PHPASPASP.NET) (JavaScriptVBScript)
19
Outline
.NET Framework
20
Microsoft Visual Studio.NET Professional 2003 ( 60 ) $ 400
Microsoft Visual C# .NET 2003 $ 3000 ~ 4000
Microsoft Visual Studio .NET Professional 2003 $ 27500
(Yahoo )
21
Web Form IIS
XP
.NET
1.5G
22
IIS (1)
ASP.NET Web IIS
[] [] [/Windows ]
23
IIS (2) [/Windows ] [Windows ] IIS
24
IIS (3)
IIS http://localhost/ IIS
25
(1)
26
(2)
27
(3)
28
(4)
29
(5)
30
(6)
31
(7)
32
(1)
33
(2)
34
Outline
.NET Framework
35
.NET
36
aspxcs
dllcsprojsln
()
37
[] []
38
[] []
39
[] []
40
Outline
.NET Framework
41
Windows
EXE
DLL
Console
EXE
42
43
using System;
namespace sample1_1{
/// /// Class1 /// class Class1{
/// /// /// [STAThread]static void Main(string[] args){
//// TODO: //
}}
}
44
//
/*
*/
45
Console.Write("ives");Console.WriteLine("ives");
Console.Read();
Console.ReadLine();
46
{0} {1}
Console.WriteLine("{0} {1} {2}","1","2","3"); 1 2 3Console.WriteLine("{0}{1}","","!!");!!
47
static void Main(string[] args){
Console.WriteLine("!!");Console.Write("");Console.WriteLine("!!");
Console.WriteLine();Console.WriteLine("{0}\n{1}{2}","!!","","!!");Console.ReadLine();
}
48
(1)
!! XXX !!
Console.WriteLine()
49
(2)
XXX !!
Console.ReadLine() Console.ReadLine() Console.WriteLine() Hint (1) Console.WriteLine(Console.ReadLine());
(2) Console.WriteLine("{0}",Console.ReadLine());
50
XXX !!
+!! Console.WriteLine()
51
hw1