Upload
haminh
View
247
Download
0
Embed Size (px)
Citation preview
1
ASP.NET ( C#)
CSIE, NTU
2
Outline
C#
3
Tang, Shih-Hsuan
2006/07/26 ~ 2006/09/02 PM 7:00 ~ 9:30
[email protected]/~r93057/aspnet134
4
C#
5
C# Web SQL
DataGridDataList
6
ASP.NET 1.0 C#
ASP.NET
C#
Visual C# .NET
7
20%
30%
50%
8
Outline
C#
9
Outline
C#
10
Internet Information Services (IIS)Apache
11
12
(1)
(JavaScriptVBScript)
13
(2)
(PHPASPASP.NET)
14
Outline
C#
15
Microsoft Visual Studio.NET Professional 2003 ( 60 ) $ 400
Microsoft Visual C# .NET 2003 $ 3000 ~ 4000
Microsoft Visual Studio .NET Professional 2003 $ 27500
(Yahoo 2005/05)
16
Web Form IIS
XP
.NET
1.5G
17
IIS (1)
ASP.NET Web IIS
[] [] [/Windows ]
18
IIS (2) [/Windows ] [Windows ] IIS
19
IIS (3)
IIS http://localhost/ IIS
20
(1)
21
(2)
22
(3)
23
(4)
24
(5)
25
(6)
26
(7)
27
(1)
28
(2)
29
Outline
C#
30
ToString()
int a = 321;string b = a.ToString();
Parse()
string b = "321";int a = int.Parse(b);
31
()if (){;
}else{;
}
32
if else if else if else
if (1){1;
}else if (2){2;
}else if (3){3;
}else {4;
}
33
if else
= ? 1 : 2
string a = 7>4 ? "7 4 " : "7 4 "; 7 4
string b = 1>4 ? "1 4 " : "1 4 "; 1 4
34
() (1) if else if else switch switch (){
case 1:1break;
case 2:2break;
default:break;
}
35
() (2)
switch switch
1 1 break switch default
36
() (1)for ( ; ; ){;
}for (int i=0; i
37
() (2)
for (int i=0, j=0; i*j
38
39
Break Continue
break for break
continue for continue
40
() (1)for while while (){
}int i = 0;while (i < 10){
i++;Console.Write(i + " ");
}// 1 2 3 4 5 6 7 8 9 10
41
() (2)
while
while break continue false
while
while (Console.ReadLine() != "yes");
42
() (1)
while do while
do{
} while ( );
43
() (2)
do {
Console.WriteLine("1");}while (false);// 1
do while break continue
44
45
(1)
43210
25242322212019181716151413121110987654321
46
[ ] = new [];
int[] myArray = new int[10];string[] studentName = new string[100];int[] a = new int[5] {0,1,2,3,4};
int[,] b = new int[2,3];int[,] c = new int[2,3] {{1,2,3},{4,5,6}};
47
()
() foreachforeach( in ){;
}int[] arrayA = new int[5] {10,1,2,3,4};foreach(int a in arrayA){
Console.WriteLine(a);}
48
(1) using namespace {;
}
49
(2)
namespace IBM{
class Notebook{}
}namespace Compaq{
class Notebook{}
}
50
(field) (property) (method) (event)
51
new
= new ();
car myCar = new car();car myCar;myCar = new car();
52
(1)
"." ()
(){;
}
53
(2)
public void hello() {
Console.WriteLine("");}
void ()
54
(1)
(1 1, 2 2, ){;
}
55
(2)
public int add(int a, int b){
return a + b;}
return
56
(1)
static "." Main
57
(2)
static (){;
}
static void Main(string[] args)
Main private
58
59
Object
object object object Boxing boxingexobject o = (int) 1;
UnBoxingUnBoxingexint i = (int) o;
60
ArrayList (1)
ArrayList
61
ArrayList (2)
System.Collections;
Count
AddInsertRemoveClearSortReverse