Understand Web development and master the syntax of ASP. NET development language, please read chapters 0~6 carefully.
Understand the core object of ASP. NET, please read chapters 3-6 carefully.
To learn the ASP.NET 3.5 application of Visual Studio 2008, please read the chapter 1~ 10 carefully.
To study the development of ADO.NET, please read the chapter 1 1~ 14 carefully.
To master some advanced skills of ASP.NET 3.5 network development, please read 15~22 chapters carefully.
Please read chapters 7~ 12 and 2 1~22 carefully to understand the large-scale case of ASP.NET 3.5 development.
Master ASP. NET in XML and AJAX, please read chapters 13 and 20 carefully. ? 0Learn the necessary knowledge of Web development 22
0. 1 Basic concept 22
0. 1. 1 What is a Web page 22?
0. 1.2 Web development technology 22
0. 1.3 Web development related technologies 24
0.2 Building a development environment 24
Install Visual Studio 2008 24
0.2.2 introduction to visual studio 2008 ide 26
0.2.3 Realizing the First ASP.NET Plan 27
0.3 IIS 7 Web service configuration 28
0.3. 1 Install IIS 7 28
0.3.2 Configure the. NET version 29 supported by IIS 7.
0.3.3 Browse the first ASP.NET program 3 1.
0.4 C# 3.0 language foundation 32
Introduction to 0.4. 1 C# 32
Variables and constants 32
Operator 33
Process control 35
0.4.5 implicit local variable 37
0. 4. 6λ expression 37
0.4.7 Overview of LINQ Integrated Query 38
0.5 coding specification 39
0.5. 1 Good coding structure 39
0.5.2 Good annotation style 40
0.5.3 Good naming standard 4 1
0.5.4 Avoid too large a file 4 1
Connecting the preceding with the following 42
1 Entering ASP.NET 3.5 44
1. 1 ASP.NET
1.1.1ASP.NET 3.5-Dynamic Page Development Tool 44
1. 1.2 Creating a Website 45
1. 1.3 design website 46
1. 1.4 The foreground and background of the website 46
1.2 ASP.NET 3.5 dynamic web page analysis 48
1.2. 1 event handling of foreground client 48
1.2.2 background server-side event handling 49
1.2.3 order and principles of web page processing by websites 50
Connect the front and bottom 5 1
2 C# object-oriented function 52
2. 1 overview of object-oriented programming 52
What are classes and objects 52?
2. 1.2 How to create 53 classes with C#
2. 1.3 How to create object 54 with C#
2. 1.4 What is object-oriented programming 54
2.2 Object-oriented technology 55
2.2. 1 interface 55
2.2.2 How to create an interface with C#
Inheritance 56
2.2.4 How to realize inheritance with C# 56
Polymorphism 57
2.2.6 How to realize polymorphism with C#
2.3 Simple example of object-oriented development 58
Object-oriented functional design 58
2.3.2 Object-oriented class design
Object-oriented applications 59
Connect the front and bottom 6 1
3 ASP.NET Core Objectives 62
3. 1 Page Category 62
3. 1. 1 Page Category Overview 62
3. 1.2 Explore the page life cycle 63
3.2 ASP.NET Core Object 65
3.2. 1 Use response output information 66
3.2.2 Use Request to Get Page Input 67
3.2.3 Using the server to obtain server information 69
3.3 *** Enjoy data 7 1
3.3. 1 Use the application * * * Enjoy the data 72
Using the Global.asax file 73
3.3.3 Enjoy the data using the session * * * 74
3.3.4 Authenticating Users with Sessions 76
Connecting the preceding with the following 78
4 strings 79
4. 1 string string 79
4. 1. 1 comparison string 80
4. 1.2 determining leading and trailing strings 82
4. 1.3 Judge whether substring 82 is included.
4. 1.4 Locating characters and substrings 82
4. 1.5 format string 84
4. 1.6 connection string 84
4. 1.7 Split string 85
4. 1.8 Insert string 86
4. 1.9 Fill the string 86
Delete string 86
4. 1. 1 Copy string 87
Replace string 88
4. 1. 13 change case 88
4.2 Dynamic String StringBuilder 88
4.2. 1 comparison string 89
4.2.2 Setting capacity 89
4.2.3 Add String 90
Insert string 90
4.2.5 Delete the string 9 1
4.2.6 Replace the string 9 1
4.3 Regular expression Regex 9 1
Introduction to Regular Expressions 92
4.3.2 Construction of Regular Expressions 92
4.3.3 Using Regular Expression 94 Class
4.4 Character encoding 95
4.4. 1 character coding overview 95
4.4.2 Character coding category 96
Connecting the preceding with the following 98
5 arrays and sets 100
5. 1 array 100
5. What is1.1array 100?
5. 1.2 Create an array 102
5. 1.3 array base class array 103
5. 1.4 accessing array elements 104
5. 1.5 transformation element type 105
5. 1.6 Traverse array elements 106
5. 1.7 Sort array elements 107
5. 1.8 Find array elements 109
5. 1.9 Invert array elements 1 10
5. 1. 10 copy array11
5.2 Setting 1 12
5.2. 1 What is set 1 12?
5.2.2 List Class Array List 1 13
5.2.3 Create list 1 14
5.2.4 Traversal list 1 14
5.2.5 Add the element 1 15.
Insert component 1 16.
5.2.7 Delete the element 1 17.
5.2.8 Simple sorting 1 18
5.2.9 Complex Sorting 1 18
Find the element 1 1 19.
5.3 Queue 120
5.3. 1 What is a queue 120?
5.3.2 Queue Class Queue 120
5.3.3 Create Queue 120
5.3.4 Element Entry 12 1
5.3.5 Element dequeue 122
5.4 Stack 122
5.4. 1 What is a stack 122?
Stack class stack 123
Create stack 123
Component stacking 123
5.4.5 Elements in the stack 124
Connecting front and back 125
6 debugging and exception handling 126
6. 1 program debugging technology 126
6. 1. 1 debugging syntax error 126
6. 1.2 Debugging logic error 127
6.2 Exception handling mechanism 129
6.2. 1 abnormal 129
6.2.2 Use try-catch to handle exception 130.
6.2.3 Exception handling principles 13 1
Connect the front and the bottom 132? 7 standard server control 134
7. 1 web control overview 134
7. 1. 1 What is a server control 134?
7. 1.2 web control space 135
7.2 input control 137
7.2. 1 button 137
7.2.2 Text box 14 1
Check box check box 143
7.2.4 Radio button Radio button 145
7.2.5 Hyperlink 147
7.2.6 Link button 148
Image 150
7.2.8 Image button 15 1
7.2.9 image hotspot image mapping 152
7.2. 10 Project List BulletedList 154
7.3 List control 155
7.3. 1 drop-down box drop-down list 156
List Box List Box 158
7.3.3 Checkbox List Checkbox List 159
7.3.4 radio button list 162
7.4 Container Control 163
7.4. 1 panel 163
Table 165
7.5 Other controls 169
7.5. 1 advertisement column AdRotator 170
7.5.2 Calendar 17 1
Connecting front and back 174
8 HTML server control 175
8. 1 html control overview 175
8. 1. 1 reference standard 175
8. 1.2 html control space 176
8.2 input control html input 177
8.2. 1 button html input button 177
8.2.2 single-line text box HtmlInputText 180
8.2.3 Multi-line text box HtmlTextArea 182
8.2.4 Hide the text box HtmlInputHidden 182
8.2.5 File box html input file 184
8.2.6 checkbox HtmlInputCheckBox 186
8.2.7 radio button box HtmlInputRadioButton 188
8.3 container control html container 189
8.3. 1 table html table 190
8.3.2 list box/drop-down box control HtmlSelect 192
8.4 image control HtmlImage 195
Connect the front and back 197.
9 data validation control 199
9. 1 overview 199
9.2 Authentication Control 200
9.2. 1 required field validator 200 for required validation control
9.2.2 Comparison Verification Control Comparison Verifier 202
9.2.3 Range Verification Control Range Verifier 205
9.2.4 Regular Validation Controls Regular Expression Verifier 206
9.2.5 Custom Validation Control CustomValidator 208
9.2.6 Verification Summary Control Verification Summary 2 1 1
9.3 Registration Page Example 2 13
Connect front and back 2 16
10 user control217
Overview of 10. 12 17
10. 1. 1 What is a user control 2 17?
10. 1.2 When to use the user control 2 17
10.2 using user control218
Create User Control 2 18
10.2.2 Add user control219
10.2.3 defines user control properties 220.
10.2.4 Define User Control Event 22 1
10.2.5 comparison webpage 22 1
Connecting the preceding with the following? 1 1 ADO.NET
Overview of 1 1. 1 224
11.1.1ADO.NET function 224
11.1.2 ADO.NET basic structure 225
1 1. 1.3 system. Data space 225
Connected to the database 226
11.2.1sqlconnection class 226
1 1.2.2 connecting to the database 227
1 1.2.3 Configure connection 228 with web.config
1 1.2.4 Disconnect the database 229
1 1.3 operation database 230
11.3.1sqlcommand class 230
1 1.3.2 Query data 23 1
11.3.3 sqldatareader class 232
1 1.3.4 Operation data 233
1 1.4 memory data object 234
11.4.1sqldataadapter class 235
1 1.4.2 Dataset Class 237
1 1.4.3 data table class 239
1 1.5 SQL basics 243
1 1.5. 1 SQL base243
1 1.5.2 Create Database244
1 1.5.3 Delete DatabaseDelete Database244.
1 1.5.4 Create Table 245
1 1.5.5 modify table update table 246
1 1.5.6 Delete table Delete table 248
1 1.5.7 insert data insert 248
1 1.5.8 Modify data update 249
1 1.5.9 Delete Data Delete 249
11.5.10sql simple query 249
11.5.11Group the results by 252.
1 1.5. 12 uses DISTINCT to copy the result 253.
1 1.5. 13 sorts the results according to 253.
1 1.5. 14 uses the function and expression 254.
Operator 254 is used for 1 1.5. 15.
1 1.6 LINQ cardinality 254
11.6.1linq query database principle 254
1 1.6.2 Add database mapping class 255 to the project.
1 1.6.3 Operating Database with LINQ-Query, Add, Delete and Modify 256
Connecting the preceding with the following 257
12 data control 258
12. 1 overview 258
Grid view GridView 259
12.2. 1 Understanding GridView 259
12.2.2 Column type 260 in GridView
12.2.3 Automatically generate data column 26 1
12.2.4 displays data 264 in the BoundField column.
12.2.5 editing data using the CommandField column 266
12.2.6 Delete data using command field column 268.
12.2.7 using the command field column to select data 270
12.2.8 Link data with hyperlink field column 27 1
12.2.9 Using ButtonField column to manipulate data flexibly 273
12. 2. 10 page browsing data 275
List control 276
12.3. 1 bind the dataset to DropDownList 277.
12.3.2 Binds DataReader to list box 279.
12.3.3 bind the data table to CheckBoxList 280.
12.3.4 Binds the hash table to radio button list 282.
12.4 uses LinqDataSource data source control 284.
12.4. 1 use SqlDataSource to generate GridView 284 that supports addition, deletion and modification.
12.4.2 use LinqDataSource to generate GridView 285 that supports adding, deleting and modifying.
12.5 data page control and list view control 287
12.5. 1 list view binding data 287
12.5.2 ListView combined with DataPager control to realize data page288.
Connecting the preceding with the following 289
13 XML data operation 290
XML 290 in 13. 1 NET framework
13. 1. 1 What is XML 290?
13. 1.2 XML document object model DOM 29 1
13. 1.3 system. Xml namespace 292
13.2 reading XML 292
13.2. 1 reading XML 293 with XmlDocument.
13.2.2 reading XML 293 with XmlReader.
13.2.3 read node 297 using XmlNode.
13.3 querying XML 298
13.3. 1 basic XPath expression 299
13.3.2 Restrict the query scope 299
13.3.3 Setting query conditions with functions 300
13.3.4 Setting the query criteria with operators 300
13.3.5 uses wildcards to match 30 1.
13.3.6 Comprehensive Example 30 1
13.4 modify XML 302
Create a new DOM node 302.
13.4.2 Create DOM Node Attribute 303
13.4.3 modify DOM node 304
13.4.4 Delete DOM node 305.
13.4.5 Save DOM tree 306
13.5 interacts with data set 307.
13.5. 1 loading XML data using data set 307.
13.5.2 loading relational data using XmlDataDocument 309.
Context 3 10
14 file operation 3 1 1
14. 1 operation document 3 1 1
14. 1. 1 create file 3 12
14. 1.2 copy file 3 12
14. 1.3 Rename file 3 12
14. 1.4 Delete file 3 13
14.2 reading and writing files 3 13
14. 2. 1 writing files with StreamWriter 3 13.
14.2.2 using StreamReader to read files
Connect the front and the bottom 3 15? 15 Home Page 3 17
15. 1 static master page317
Create Master Page 3 18
Add controls to master page 3 19
15.10.3 Mastering Content Page 320
15. 1.4 main page of mining mechanism 32 1
15.2 interacts with the homepage 322.
15.2. 1 life cycle of master page and content page 322
15.2.2 Control Events in Master Page 323
15.2.3 Access the content page control 324 in the master page.
15.2.4 accessing the master page control 325 in the content page
15.3 Dynamic Selection of Master Page 326
continue from the preceding and introduce the following
16 site navigation system 330
16.1overview of ASP.NET navigation system 330
16. 1. 1 navigation overview 33 1
16. 1.2 From website to navigation control 33 1
Site Map Site Map 332
16.2. 1 website map overview 332
16.2.2 Building site map with SiteMapNode 333
16.2.3 using SiteMapProvider to provide data 333
16.2.4 uses the default SiteMapProvider to provide data 334.
16.2.5 using personalized configuration SiteMapProvider to provide data 337
16.3 navigation control 339
16.3. 1 use SiteMapPath to navigate 339
16.3.2 Use the tree view to navigate 34 1
16.3.3 Use the menu to navigate 343
16.4 programmable navigation 345
16.4. 1 Configure multiple site map providers for the site.
16.4.2 Create a tree view using XML 348
16.4.3 Create XML Menu 350
Connect front and back 35 1
17 style and theme 352
17. 1 style sheet CSS 352
What is17.1.1CSS 352?
Specifies the style of the HTML element.
17. 1.3 Specify HTML server control style 355
17. 1.4 specifies the standard server control style 355.
The basic syntax of 17. 1.5 CSS 357
17. 1.6 Creating Style Sheet 360 with VS2008
17.2 theme and appearance 36 1
17. 2. 1 What is the theme and appearance 36 1?
17.2.2 Create Theme and Appearance 362
Assign a theme to all pages 364.
Specify a theme 364 for a particular page.
Assign a theme to a specific control 365
Dynamically Specify Theme and Appearance 365
Connecting the preceding with the following 366
18 Web part 367
18. 1 overview 367
18. 1. 1 sneak peek 367
18. 1.2 Understanding Web Parts 368
Page manager WebPartManager 369
18. 1.4 user database configuration 370
18.2 Personalized Page 370
18. 2. 1 use WebPartZone 37 1
18.2.2 Personalized Page Layout 373
18.2.3 Add a Web Parts control 375 to the page.
18.2.4 Edit Properties of Web Parts Control 378
18.3 communication between web parts 380
Connecting the preceding with the following 382
19 member and role management 384
19. 1 member service 384
19. 1. 1 member service overview 384
19. 1.2 Membership level 385
19. 1.3 Create a new user 386
19. 1.4 authenticated user 39 1
19. 1.5 Membership User Category 392
19. 1.6 get user information 393
19.2 member management control 394
19.2. 1 member management control overview 394
19.2.2 Login user with login control 395
19.2.3 Create a new user using the Create User Wizard 396.
19.2.4 use LoginName to get the user name 398.
19.2.5 shows LoginStatus with LoginStatus 398.
19.2.6 use change password to modify password 399
19.2.7 Using PasswordRecovery to Retrieve Password399
19.3 Role management 400
Overview of Role Management 40 1
19.3.2 role class 40 1
19.3.3 Configure Role Management 402
19.3.4 Managing Roles with Administrative Tools 403
19.3.5 Using Roles to Control Page Behavior 405
continue from the preceding and introduce the following
20 AJAX programming 409
20. 1 Understanding AJAX Components 409
20.2 script controller ScriptManager 409
20.2. Structure of1script controller ScriptManager 4 10
20.2.2 Call script file 4 10 with ScriptManager.
20.2.3 ScriptManager calls Web service 4 1 1.
20.2.4 dynamically register ScriptManager 4 13.
20.3 proxy controller ScriptManagerProxy 4 14
20.3. 1 proxy ScriptManager 4 14 and ScriptManagerProxy.
20.3.2 Apply ScriptManagerProxy 4 14 in the master page.
20.4 local update control UpdatePanel 4 16
20. 4. 1 updatepanel control structure 4 16
20.4.2 Simple example of local update 4 17
20.4.3 UpdatePanel attributes UpdateMode and childrenasttriggers 418.
20.4.4 the trigger of updatepanel419.
20.4.5 dynamically update the contents of the update panel 420.
20.5 Update Progress Prompt Control Update Progress 42 1
20.5. 1 Understand the update progress 42 1
20.5.2 Simple Example of Update Progress-Implementation of Code Update Prompt 422
20.6 timer control timer 423
20.6. 1 Understanding Timer 423
20.6.2 Update the instance 423 periodically using the timer control.
20.6.3 A timer is used to periodically update multiple UpdatePanel instances 424.
Connecting the preceding with the following? 21multi-layer structure of web system 227
On the three-tier structure of 2 1. 1 Web system30000.00000000106
Beifeng 428 has a 2 1.2 multi-layer structure.
2 1.2. 1 overall structure 428
2 1.2.2 data access layer DAL 428
2 1.2.3 business logic layer BLL 43 1
2 1.2.4 user presentation layer UI 432
Connecting the preceding with the following 433
22 Three-tier news management system 434
22. 1 news management system function preview 434
22.2 database design 435
22.2. 1 database design considerations 435
Table structure in the database 436
22.2.3 Creating Website and Mapping Table Entities 438
22.3 website overall layout design 439
22.3. 1 master page design 439
22.3.2 Three-layer Structure Design of Website 440
22.4 Website member management function 440
22.4. 1 member registration function 440
22.4.2 Member login function
22.4.3 Member information modification function 444
22.4.4 Online member data statistics function 447
22.5 news classification function 448
22.5. 1 Add news classification 448
22.5.2 Revision of news classification
22.5.3 Delete news classification 452
22.6 The main functions of news management 454
22. 6. 1 Add news 454
Edit news 457
Browse and delete news 459
22.7 Announcement management function 462
22.7. 1 Add Announcement 462
22.7.2 Editing Announcement 463
22.7.3 Browse and Delete Announcement 466
22.8 Friendship Link Management Function 468
22.8. 1 Add Friendship Link 468
22.8.2 Browse and delete friendship links 469
22.9 Comment management function 47 1
22. Main functions of10 members browsing websites 473
22. 10. 1 news browsing function 473
22. 10.2 browse announcement function 475
22. 10.3 Browse photo news 477
22. 10.4 Other ordinary user functions 478
22. 1 1 Some website operation skills. 36866.88866886666
22. 1 1. 1 upload file 479
22. 1 1.2 Creating and referencing user controls 479
22. 12 main screenshot of part 480 of the website
Connect the front and bottom 48 1
23 Simple Forum System 482
23. 1 AJAX control package 482
23.2 Introduction to Forum Functions 483
23.3 Forum AJAX Technology Application Overview 484
23.4 Database Design of the Forum 484
23.4. 1 Configuration Access to ASP.NET Service Database 484
23.4.2 Create a data table in the forum 486
23.4.3 Relationship between data tables in the forum 486
23.5 Database Design of the Forum 487
23.5. 1 Configuration Access to ASP.NET Service Database 487
23.5.2 Configure the database to access the ASP.NET service 488.
23.6 Function of publishing message theme 489
23.6. 1 Design the layout of publishing message function 490
23.6.2 Main methods to realize the function of publishing messages 492
23.7 the function of browsing the message theme 494
23.8 message reply function 496
23.8. 1 Show all replies 496.
23.8.2 Add Reply 498
23.8.3 The modified reply template supports AJAX 50 1.
23.8.4 Add a confirmation prompt for the delete button 503.
23.9 Forum SMS function 504
23.9. 1 Send SMS 504
23.9.2 Receiving SMS 506
23.9.3 AJAX displays short message prompt 508
23. 10 User-defined interface style function 5 10
23. 10. 1 Enable the profile configuration of ASP.NET 510.
23. 10.2 Using AJAX ProfileService to realize personalized interface customization 5 1 1
Summary 5 14