عن كتاب Preview ASP.NET Tutorial: Preview ASP.NET Tutorial
Microsoft to allow programmers to build dynamic web sites
Contents
About the Tutorial .................................................................................................................................... i
Audience .................................................................................................................................................. i
Prerequisites ............................................................................................................................................ i
Disclaimer & Copyright ............................................................................................................................. i
Contents .................................................................................................................................................. ii
1. INTRODUCTION ................................................................................................................... 1
What is ASP.NET? .................................................................................................................................... 1
ASP.NET Web Forms Model .................................................................................................................... 1
The ASP.NET Component Model ............................................................................................................. 2
Components of .Net Framework 3.5........................................................................................................ 2
2. ENVIRONMENT SETUP ......................................................................................................... 5
The Visual Studio IDE .............................................................................................................................. 5
Working with Views and Windows .......................................................................................................... 6
Adding Folders and Files to your wWebsite ............................................................................................. 6
Projects and Solutions ............................................................................................................................. 7
Building and Running a Project ............................................................................................................... 7
3. LIFE CYCLE ........................................................................................................................... 8
ASP.NET Application Life Cycle ................................................................................................................ 8
ASP.NET Page Life Cycle .......................................................................................................................... 8
ASP.NET Page Life Cycle Events ............................................................................................................. 10
4. FIRST EXAMPLE .................................................................................................................. 12
Page Directives ...................................................................................................................................... 12
Code Section ......................................................................................................................................... 12
Page Layout ........................................................................................................................................... 13
Using Visual Studio IDE ......................................................................................................................... 14
ASP.NET
iii
5. EVENT HANDLING .............................................................................................................. 17
Event Arguments ................................................................................................................................... 17
Application and Session Events ............................................................................................................. 17
Page and Control Events........................................................................................................................ 17
Event Handling Using Controls .............................................................................................................. 18
Default Events ....................................................................................................................................... 19
6. SERVER SIDE ...................................................................................................................... 24
Server Object ........................................................................................................................................ 24
Request Object ...................................................................................................................................... 26
Response Object ................................................................................................................................... 28
7. SERVER CONTROLS ............................................................................................................ 34
Properties of the Server Controls .......................................................................................................... 35
Methods of the Server Controls ............................................................................................................ 38
8. HTML SERVER .................................................................................................................... 46
Advantages of using HTML Server Controls ........................................................................................... 46
9. CLIENT SIDE ....................................................................................................................... 52
Client Side Scripts .................................................................................................................................. 52
Client Side Source Code ......................................................................................................................... 53
10. BASIC CONTROLS ............................................................................................................... 56
Button Controls ..................................................................................................................................... 56
Text Boxes and Labels ........................................................................................................................... 57
Check Boxes and Radio Buttons ............................................................................................................ 58
List Controls .......................................................................................................................................... 58
The ListItemCollection Object ............................................................................................................... 60
Radio Button list and Check Box List ..................................................................................................... 62
Bulleted lists and Numbered Lists ......................................................................................................... 63
ASP