Stephen Walther0-672-33011-3
Table of contents :
ASP.NET 3.5 Unleashed……Page 1
Table of Contents……Page 6
What Do You Need to Know Before You Read This Book?……Page 28
Changes to This Book……Page 29
How This Book Is Organized……Page 30
Part I: Building ASP.NET Pages……Page 32
1 Overview of the ASP.NET Framework……Page 34
ASP.NET and the .NET Framework……Page 38
Understanding ASP.NET Controls……Page 47
Understanding ASP.NET Pages……Page 62
Installing the ASP.NET Framework……Page 84
Summary……Page 86
Displaying Information……Page 88
Accepting User Input……Page 97
Submitting Form Data……Page 113
Displaying Images……Page 133
Using the Panel Control……Page 140
Using the HyperLink Control……Page 147
Summary……Page 149
Overview of the Validation Controls……Page 150
Using the RequiredFieldValidator Control……Page 168
Using the RangeValidator Control……Page 172
Using the CompareValidator Control……Page 174
Using the RegularExpressionValidator Control……Page 180
Using the CustomValidator Control……Page 183
Using the ValidationSummary Control……Page 191
Creating Custom Validation Controls……Page 196
Summary……Page 206
Accepting File Uploads……Page 208
Displaying a Calendar……Page 224
Displaying Advertisements……Page 235
Displaying Different Page Views……Page 248
Displaying a Wizard……Page 254
Summary……Page 259
Part II: Designing ASP.NET Websites……Page 262
5 Designing Websites with Master Pages……Page 264
Creating Master Pages……Page 265
Modifying Master Page Content……Page 282
Loading Master Pages Dynamically……Page 290
Summary……Page 294
6 Designing Websites with Themes……Page 296
Adding Skins to Themes……Page 297
Adding Cascading Style Sheets to Themes……Page 307
Creating Global Themes……Page 316
Applying Themes Dynamically……Page 317
Summary……Page 323
7 Creating Custom Controls with User Controls……Page 324
Creating User Controls……Page 325
AJAX and User Controls……Page 342
Dynamically Loading User Controls……Page 345
Summary……Page 360
Part III: Performing Data Access……Page 362
Using DataBound Controls……Page 364
Using DataSource Controls……Page 377
Using Programmatic DataBinding……Page 382
Understanding Templates and DataBinding Expressions……Page 384
Overview of SQL Server 2005 Express……Page 394
Sample Database-Driven Web Application……Page 400
Summary……Page 403
9 Using the SqlDataSource Control……Page 406
Creating Database Connections……Page 407
Executing Database Commands……Page 416
Using ASP.NET Parameters with the SqlDataSource Control……Page 432
Programmatically Executing SqlDataSource Commands……Page 452
Caching Database Data with the SqlDataSource Control……Page 461
Summary……Page 463
Overview of the List Controls……Page 464
Working with the DropDownList Control……Page 482
Working with the RadioButtonList Control……Page 484
Working with the ListBox Control……Page 487
Working with the CheckBoxList Control……Page 491
Working with the BulletedList Control……Page 493
Creating a Custom List Control……Page 498
Summary……Page 507
11 Using the GridView Control……Page 508
GridView Control Fundamentals……Page 509
Using Fields with the GridView Control……Page 544
Working with GridView Control Events……Page 568
Extending the GridView Control……Page 577
Summary……Page 587
Using the DetailsView Control……Page 590
Using the FormView Control……Page 626
Summary……Page 644
Using the Repeater Control……Page 646
Using the DataList Control……Page 663
Summary……Page 683
Using the ListView Control……Page 684
Using the DataPager Control……Page 703
Summary……Page 711
Part IV: Building Components……Page 712
15 Building Components……Page 714
Building Basic Components……Page 715
Building Component Libraries……Page 743
Architectural Considerations……Page 750
Summary……Page 763
16 Using the ObjectDataSource Control……Page 764
Representing Objects with the ObjectDataSource Control……Page 765
Using Parameters with the ObjectDataSource Control……Page 776
Paging, Sorting, and Filtering Data with the ObjectDataSource Control……Page 788
Handling ObjectDataSource Control Events……Page 810
Concurrency and the ObjectDataSource Control……Page 822
Extending the ObjectDataSource Control……Page 825
Summary……Page 834
17 Building Data Access Components with ADO.NET……Page 836
Connected Data Access……Page 837
Disconnected Data Access……Page 882
Executing Asynchronous Database Commands……Page 904
Building Database Objects with the .NET Framework……Page 910
Summary……Page 926
18 Data Access with LINQ to SQL……Page 928
New C# and VB.NET Language Features……Page 929
Creating LINQ to SQL Entities……Page 945
Performing Standard Database Commands with LINQ to SQL……Page 957
Creating a Custom LINQ Entity Base Class……Page 984
Summary……Page 993
Part V: Site Navigation……Page 996
Understanding Site Maps……Page 998
Using the SiteMapPath Control……Page 1000
Using the Menu Control……Page 1007
Using the TreeView Control……Page 1036
Building a SQL Hierarchical Data Source Control……Page 1063
Summary……Page 1067
20 Using Site Maps……Page 1068
Using the SiteMapDataSource Control……Page 1069
Using the SiteMap Class……Page 1075
Advanced Site Map Configuration……Page 1080
Creating Custom Site Map Providers……Page 1090
Generating a Google SiteMap File……Page 1101
Summary……Page 1105
Remapping URLs……Page 1108
Using the VirtualPathProvider Class……Page 1117
Summary……Page 1127
Part VI: Security……Page 1128
22 Using the Login Controls……Page 1130
Overview of the Login Controls……Page 1131
Using the Login Control……Page 1135
Using the CreateUserWizard Control……Page 1145
Using the LoginStatus Control……Page 1166
Using the LoginName Control……Page 1168
Using the ChangePassword Control……Page 1170
Using the PasswordRecovery Control……Page 1176
Using the LoginView Control……Page 1183
Summary……Page 1187
23 Using ASP.NET Membership……Page 1188
Configuring Authentication……Page 1189
Configuring Authorization……Page 1204
Using ASP.NET Membership……Page 1210
Using the Role Manager……Page 1230
Summary……Page 1244
Part VII: Building ASP.NET Applications……Page 1246
24 Maintaining Application State……Page 1248
Using Browser Cookies……Page 1249
Using Session State……Page 1264
Using Profiles……Page 1281
Summary……Page 1315
Overview of Caching……Page 1316
Using Page Output Caching……Page 1318
Using Partial Page Caching……Page 1341
Using DataSource Caching……Page 1354
Using Data Caching……Page 1366
Using SQL Cache Dependencies……Page 1377
Summary……Page 1395
26 Localizing Applications for Multiple Languages……Page 1396
Setting the Current Culture……Page 1397
Using the CultureInfo Class……Page 1411
Creating Local Resources……Page 1415
Creating Global Resources……Page 1424
Using the Localize Control……Page 1428
Summary……Page 1429
27 Working with the HTTP Runtime……Page 1430
Creating a Custom BuildProvider……Page 1431
Creating a Custom ExpressionBuilder……Page 1442
Creating HTTP Handlers……Page 1447
Working with HTTP Applications and HTTP Modules……Page 1462
Summary……Page 1468
Overview of Website Configuration……Page 1470
Using the Configuration API……Page 1482
Creating Custom Configuration Sections……Page 1505
Creating Encrypted Configuration Sections……Page 1515
Summary……Page 1523
Part VIII: Custom Control Building……Page 1524
Overview of Custom Control Building……Page 1526
View State and Control State……Page 1546
Processing Postback Data and Events……Page 1553
Working with Control Property Collections……Page 1568
Creating a Better Designer Experience……Page 1581
Summary……Page 1595
Creating Templated Controls……Page 1596
Creating Templated Databound Controls……Page 1615
Summary……Page 1621
Part IX: ASP.NET AJAX……Page 1622
31 Using Server-Side ASP.NET AJAX……Page 1624
The Ajax Vision……Page 1625
Debugging Ajax Applications……Page 1627
Using the UpdatePanel Control……Page 1629
Using the Timer Control……Page 1676
Using the UpdateProgress Control……Page 1680
Summary……Page 1683
32 Using the ASP.NET AJAX Control Toolkit……Page 1684
Using the ASP.NET AJAX Control Toolkit……Page 1685
Overview of the Toolkit Controls……Page 1687
Using the AutoComplete Control……Page 1691
Using the DragPanel Control……Page 1701
Using the FilteredTextBox Control……Page 1705
Using the MaskedEdit Control……Page 1707
Using the Animation Control……Page 1710
Using the UpdatePanelAnimation Control……Page 1716
Summary……Page 1719
Making JavaScript Look Like C#……Page 1722
Calling Web Services from the Client……Page 1753
Creating Custom AJAX Controls and Behaviors……Page 1776
Summary……Page 1796
Part X: Sample Application……Page 1798
34 Building a Code Sample Website……Page 1800
Overview of the Sample Website……Page 1801
Data Access and Validation……Page 1807
Taking Advantage of Ajax……Page 1817
Using the VirtualPathProvider Class……Page 1820
Summary……Page 1822
A……Page 1824
B……Page 1831
C……Page 1833
D……Page 1845
E……Page 1854
F……Page 1857
G……Page 1861
H……Page 1864
I……Page 1865
K……Page 1868
L……Page 1869
M……Page 1874
N……Page 1877
O……Page 1879
P……Page 1881
R……Page 1886
S……Page 1890
T……Page 1905
U……Page 1910
V……Page 1913
W……Page 1915
X-Y-Z……Page 1917
Reviews
There are no reviews yet.