Contents

Chapter 1: Getting Started with ASP.NET 4.5.1

Microsoft Visual Studio Express for Web

Creating Your First ASP.NET 4.5.1 Website

An Introduction to ASP.NET 4.5.1

A Tour of the IDE

Customizing the IDE

The Sample Application

Practical Tips on Visual Studio

Summary

Chapter 2: Building an ASP.NET Website

Creating Websites with Visual Studio 2013

Working with Files in Your Website

Working with Web Forms

Practical Tips on Working with Web Forms

Summary

Chapter 3: Designing Your Web Pages

Why Do You Need CSS?

An Introduction to CSS

Working with CSS in Visual Studio

Practical Tips on Working with CSS

Summary

Chapter 4: Working with ASP.NET Server Controls

Introduction to Server Controls

A Closer Look at ASP.NET Server Controls

Types of Controls

The ASP.NET State Engine

Practical Tips on Working with Controls

Summary

Chapter 5: Programming Your ASP.NET Web Pages

Introduction to Programming

Data Types and Variables

Statements

Organizing Code

Object Orientation Basics

Practical Tips on Programming

Summary

Chapter 6: Creating Consistent Looking Websites

Consistent Page Layout with Master Pages

Using a Centralized Base Page

Themes

Skins

Practical Tips on Creating Consistent Pages

Summary

Chapter 7: Navigation

Different Ways to Move Around Your Site

Using the Navigation Controls

Routing

Programmatic Redirection

Practical Tips on Navigation

Summary

Chapter 8: User Controls

Introduction to User Controls

Adding Logic to Your User Controls

Practical Tips on User Controls

Summary

Chapter 9: Validating User Input

Gathering Data from the User

Processing Data at the Server

Practical Tips on Validating Data

Summary

Chapter 10: ASP.NET AJAX

Introducing Ajax

Using ASP.NET AJAX in Your Projects

Using Web Services in Ajax Websites

Practical Ajax Tips

Summary

Chapter 11: jQuery

An Introduction to jQuery

jQuery Syntax

Modifying the DOM with jQuery

Effects with jQuery

jQuery and Validation

Practical Tips on jQuery

Summary

Chapter 12: Introducing Databases

What Is a Database?

Different Kinds of Relational Databases

Using SQL to Work with Database Data

Retrieving and Manipulating Data with SQL

Creating Your Own Tables

Practical Database Tips

Summary

Chapter 13: Displaying and Updating Data

Data Controls

Data Source and Data-bound Controls Working Together

Customizing the Appearance of the Data Controls

Updating and Inserting Data

Practical Tips for Displaying and Updating Data

Summary

Chapter 14: LINQ and the ADO.NET Entity Framework

Introducing LINQ

Introducing the ADO.NET Entity Framework

Mapping Your Data Model to an Object Model

Introducing Query Syntax

Using Model Binding with LINQ Queries

Practical LINQ and ADO.NET Entity Framework Tips

Summary

Chapter 15: Working with Data — Advanced Topics

Formatting Your Controls Using Styles

Handling Events

Hand-Coding Data Access Code

Caching

Practical Data Tips

Summary

Chapter 16: Security in Your ASP.NET Website

Introducing Security

Introducing the Login Controls

The Role Manager

Practical Security Tips

Summary

Chapter 17: Personalizing Websites

Understanding Profile

Other Ways of Dealing with Profile

Practical Personalization Tips

Summary

Chapter 18: Exception Handling, Debugging, and Tracing

Exception Handling

The Basics of Debugging

Tools Support for Debugging

Debugging Client-Side Script

Debugging with the Page Inspector

Cross-browser Testing with Browser Link

Tracing Your ASP.NET Web Pages

Practical Debugging Tips

Summary

Chapter 19: Deploying Your Website

Preparing Your Website for Deployment

Introducing Bundling and Minification

Preparing for Deployment

Running Your Site Under IIS

Moving Data to a Remote Server

The Deployment Checklist

What’s Next

Summary

Appendix A: Exercise Answers

Appendix B: Configuring SQL Server 2012

Introduction

Advertisement

End User License Agreement

List of Illustrations

FIGURE I-1

FIGURE I-2

FIGURE 1-1

FIGURE 1-2

FIGURE 1-3

FIGURE 1-4

FIGURE 1-5

FIGURE 1-6

FIGURE 1-7

FIGURE 1-8

FIGURE 1-9

FIGURE 1-10

FIGURE 1-11

FIGURE 1-12

FIGURE 1-13

FIGURE 1-14

FIGURE 1-15

FIGURE 1-16

FIGURE 2-1

FIGURE 2-2

FIGURE 2-3

FIGURE 2-4

FIGURE 2-5

FIGURE 2-6

FIGURE 2-7

FIGURE 2-8

FIGURE 2-9

FIGURE 2-10

FIGURE 2-11

FIGURE 2-12

FIGURE 2-13

FIGURE 2-14

FIGURE 2-15

FIGURE 2-16

FIGURE 2-17

FIGURE 2-18

FIGURE 2-19

FIGURE 2-20

FIGURE 2-21

FIGURE 2-22

FIGURE 2-23

FIGURE 2-24

FIGURE 3-1

FIGURE 3-2

FIGURE 3-3

FIGURE 3-4

FIGURE 3-5

FIGURE 3-6

FIGURE 3-7

FIGURE 3-8

FIGURE 3-9

FIGURE 3-10

FIGURE 3-11

FIGURE 3-12

FIGURE 3-13

FIGURE 3-14

FIGURE 3-15

FIGURE 3-16

FIGURE 3-17

FIGURE 3-18

FIGURE 3-19

FIGURE 3-20

FIGURE 3-21

FIGURE 3-22

FIGURE 3-23

FIGURE 3-24

FIGURE 3-25

FIGURE 3-26

FIGURE 4-1

FIGURE 4-2

FIGURE 4-3

FIGURE 4-4

FIGURE 4-5

FIGURE 4-6

FIGURE 4-7

FIGURE 4-8

FIGURE 4-9

FIGURE 4-10

FIGURE 4-11

FIGURE 4-12

FIGURE 4-13

FIGURE 4-14

FIGURE 4-15

FIGURE 4-16

FIGURE 4-17

FIGURE 4-18

FIGURE 5-1

FIGURE 5-2

FIGURE 5-3

FIGURE 5-4

FIGURE 5-5

FIGURE 5-6

FIGURE 5-7

FIGURE 5-8

FIGURE 5-9

FIGURE 6-1

FIGURE 6-2

FIGURE 6-3

FIGURE 6-4

FIGURE 6-5

FIGURE 6-6

FIGURE 6-7

FIGURE 6-8

FIGURE 6-9

FIGURE 6-10

FIGURE 6-11

FIGURE 6-12

FIGURE 6-13

FIGURE 6-14

FIGURE 6-15

FIGURE 6-16

FIGURE 6-17

FIGURE 6-18

FIGURE 6-19

FIGURE 6-20

FIGURE 6-21

FIGURE 7-1

FIGURE 7-2

FIGURE 7-3

FIGURE 7-4

FIGURE 7-5

FIGURE 7-6

FIGURE 7-7

FIGURE 7-8

FIGURE 7-9

FIGURE 7-10

FIGURE 7-11

FIGURE 7-12

FIGURE 7-13

FIGURE 8-1

FIGURE 8-2

FIGURE 8-3

FIGURE 8-4

FIGURE 8-5

FIGURE 8-6

FIGURE 8-7

FIGURE 8-8

FIGURE 8-9

FIGURE 9-1

FIGURE 9-2

FIGURE 9-3

FIGURE 9-4

FIGURE 9-5

FIGURE 9-6

FIGURE 9-7

FIGURE 9-8

FIGURE 9-9

FIGURE 9-10

FIGURE 9-11

FIGURE 10-1

FIGURE 10-2

FIGURE 10-3

FIGURE 10-4

FIGURE 10-5

FIGURE 10-6

FIGURE 10-7

FIGURE 10-8

FIGURE 10-9

FIGURE 11-1

FIGURE 11-2

FIGURE 11-3

FIGURE 11-4

FIGURE 11-5

FIGURE 11-6

FIGURE 11-7

FIGURE 12-1

FIGURE 12-2

FIGURE 12-3

FIGURE 12-4

FIGURE 12-5

FIGURE 12-6

FIGURE 12-7

FIGURE 12-8

FIGURE 12-9

FIGURE 12-10

FIGURE 12-11

FIGURE 12-12

FIGURE 12-13

FIGURE 12-14

FIGURE 12-15

FIGURE 12-16

FIGURE 12-17

FIGURE 12-18

FIGURE 12-19

FIGURE 12-20

FIGURE 12-21

FIGURE 12-22

FIGURE 12-23

FIGURE 12-24

FIGURE 12-25

FIGURE 12-26

FIGURE 12-27

FIGURE 12-28

FIGURE 13-1

FIGURE 13-2

FIGURE 13-3

FIGURE 13-4

FIGURE 13-5

FIGURE 13-6

FIGURE 13-7

FIGURE 13-8

FIGURE 13-9

FIGURE 13-10

FIGURE 13-11

FIGURE 13-12

FIGURE 13-13

FIGURE 13-14

FIGURE 13-15

FIGURE 13-16

FIGURE 13-17

FIGURE 13-18

FIGURE 13-19

FIGURE 13-20

FIGURE 13-21

FIGURE 13-22

FIGURE 13-23

FIGURE 13-24

FIGURE 14-1

FIGURE 14-2

FIGURE 14-3

FIGURE 14-4

FIGURE 14-5

FIGURE 14-6

FIGURE 14-7

FIGURE 14-8

FIGURE 14-9

FIGURE 14-10

FIGURE 14-11

FIGURE 14-12

FIGURE 14-13

FIGURE 14-14

FIGURE 14-16

FIGURE 14-15

FIGURE 15-1

FIGURE 15-2

FIGURE 15-3

FIGURE 15-4

FIGURE 15-5

FIGURE 15-6

FIGURE 15-7

FIGURE 15-8

FIGURE 15-9

FIGURE 15-10

FIGURE 15-11

FIGURE 15-12

FIGURE 15-13

FIGURE 15-14

FIGURE 15-15

FIGURE 16-1

FIGURE 16-2

FIGURE 16-3

FIGURE 16-4

FIGURE 16-5

FIGURE 16-6

FIGURE 16-7

FIGURE 16-8

FIGURE 16-9

FIGURE 16-10

FIGURE 16-11

FIGURE 16-12

FIGURE 16-13

FIGURE 16-14

FIGURE 16-15

FIGURE 16-16

FIGURE 16-17

FIGURE 16-18

FIGURE 16-19

FIGURE 16-20

FIGURE 16-21

FIGURE 16-22

FIGURE 17-1

FIGURE 17-2

FIGURE 17-3

FIGURE 17-4

FIGURE 17-5

FIGURE 17-6

FIGURE 17-7

FIGURE 17-8

FIGURE 17-9

FIGURE 18-1

FIGURE 18-2

FIGURE 18-3

FIGURE 18-4

FIGURE 18-5

FIGURE 18-6

FIGURE 18-7

FIGURE 18-8

FIGURE 18-9

FIGURE 18-10

FIGURE 18-11

FIGURE 18-12

FIGURE 18-13

FIGURE 18-14

FIGURE 18-15

FIGURE 18-16

FIGURE 18-17

FIGURE 18-18

FIGURE 18-19

FIGURE 18-20

FIGURE 18-21

FIGURE 18-22

FIGURE 18-23

FIGURE 18-24

FIGURE 18-25

FIGURE 18-26

FIGURE 18-27

FIGURE 18-28

FIGURE 18-29

FIGURE 18-30

FIGURE 18-31

FIGURE 18-32

FIGURE 18-33

FIGURE 18-34

FIGURE 19-1

FIGURE 19-2

FIGURE 19-3

FIGURE 19-4

FIGURE 19-5

FIGURE 19-6

FIGURE 19-7

FIGURE 19-8

FIGURE 19-9

FIGURE 19-10

FIGURE 19-11

FIGURE 19-12

FIGURE 19-13

FIGURE 19-14

FIGURE 19-15

FIGURE B-1

FIGURE B-2

FIGURE B-3

FIGURE B-4

FIGURE B-5

FIGURE B-6

Pages

v

vi

vii

viii

ix

x

xi

xii

xiii

xiv

xxv

xxvi

xxvii

xxviii

xxiv

xxix

xxx

xxxi

xxxii

xxxiii

xxxiv

xxxv

xxxvi

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!