没有合适的资源?快使用搜索试试~ 我知道了~
首页ASP.NET4入门到精通指南
ASP.NET4入门到精通指南
需积分: 9 3 下载量 39 浏览量
更新于2024-07-29
1
收藏 13.4MB PDF 举报
ASP.NET教程是一本深入浅出的指南,旨在帮助读者从入门到精通ASP.NET 4.0,特别适合那些希望在Web开发领域取得进步的专业人士。本书由经验丰富的作者Stephen Walther、Kevin Hoffman和Nate Dudek共同编撰,它由Pearson Education出版,并受到版权保护,强调了在未经许可的情况下复制或传播内容的法律责任。
ASP.NET 4.0是Microsoft.NET框架的重要组成部分,本书详细介绍了Active Server Pages (ASP)的基础概念,以及如何利用这个平台创建动态、交互式的网站。它涵盖了网站设计的关键元素,如布局、用户体验优化、数据库集成和服务器端脚本编程。书中不仅教授理论知识,还提供了实践操作的实例,帮助读者掌握如何构建高效、安全的Web应用程序。
书中包含了大量的实战项目,涵盖了常见的开发任务,如身份验证、数据绑定、AJAX技术的应用以及Web服务的创建。此外,ASP.NET 4.0 Unleashed 还讨论了新的特性,如MVC(Model-View-Controller)架构模式,这在现代Web开发中扮演着核心角色,有助于提高代码的可维护性和扩展性。
对于学习者来说,本书既适合初学者通过逐步教程学习基础知识,也适合有一定基础的开发者查阅参考和提升技能。书中附带的索引便于快速查找特定主题,而图书馆编目信息则提供了这本书的详细分类和版权信息,以及LC分类号,以便于图书馆管理和用户检索。
ASP.NET 4.0 Unleashed 是一本实用且全面的培训教材,无论是为了提升现有技能还是开始Web开发之旅,都是不可或缺的参考资料。在阅读过程中,读者可以期待深入了解ASP.NET的核心原理、最佳实践和行业趋势,从而在IT行业中取得竞争优势。
Advanced Site Map Configuration . .........................................................1095
Using Security Trimming.................................................................1096
Merging Multiple Site Maps ............................................................1101
Creating Custom Site Map Attributes .............................................1103
Creating Custom Site Map Providers . .....................................................1105
Creating the AutoSiteMapProvider .................................................1106
Creating the SqlSiteMapProvider ....................................................1111
Generating a Google SiteMap File . ..........................................................1116
Summary . .................................................................................................1120
24 Advanced Navigation. ............................................................................1123
Remapping URLs.......................................................................................1124
Creating a Custom UrlRemapper Module.......................................1127
Using the VirtualPathProvider Class . ......................................................1132
Limitations of the VirtualPathProvider Class .................................1133
Understanding the VirtualPathProvider Class ................................1133
Registering a VirtualPathProvider Class . ........................................1135
Summary ...................................................................................................1136
25 Using the ASP.NET URL Routing Engine . ................................................1137
Introduction to URL Routing . .................................................................1137
Basic URL Routing Scenarios ....................................................................1139
Mapping Basic URLs ........................................................................1139
Mapping URLs with Parameters ......................................................1140
Mapping URLs with Multiple Segments .........................................1141
Linking to Other Pages with Routes ...............................................1142
Advanced URL Routing.............................................................................1143
Using Routes with Default Parameters............................................1143
Using Constrained Routes . .............................................................1144
Security Concerns with Routes . .....................................................1146
Summary ...................................................................................................1146
Part VI Security
26 Using the Login Controls ........................................................................1147
Overview of the Login Controls...............................................................1148
Using the Login Control. .........................................................................1152
Automatically Redirecting a User to the Referring Page.................1155
Automatically Hiding the Login Control from
Authenticated Users ......................................................................1155
Using a Template with the Login Control ......................................1157
Performing Custom Authentication with the Login Control ........1160
Using the CreateUserWizard Control. .....................................................1162
Configuring Create User Form Fields..............................................1163
Sending a Create User Email Message.............................................1166
Contents
xv
Automatically Redirecting a User to the Referring Page.................1169
Automatically Generating a Password . ..........................................1171
Using Templates with the CreateUserWizard Control....................1177
Adding Steps to the CreateUserWizard Control .............................1181
Using the LoginStatus Control .................................................................1183
Using the LoginName Control .................................................................1185
Using the ChangePassword Control.........................................................1186
Sending a Change Password Email .................................................1188
Using Templates with the ChangePassword Control .....................1190
Using the PasswordRecovery Control . ....................................................1193
Sending the Original Password .......................................................1195
Requiring a Security Question and Answer ....................................1196
Using Templates with the PasswordRecovery Control ...................1197
Using the LoginView Control. .................................................................1199
Using Roles with the LoginView Control .......................................1201
Summary . .................................................................................................1204
27 Using ASP.NET Membership. ..................................................................1205
Configuring Authentication . ...................................................................1206
Configuring Forms Authentication.................................................1207
Using Cookieless Forms Authentication .........................................1209
Using Sliding Expiration with Forms Authentication ....................1210
Using Forms Authentication Across Applications ..........................1210
Using Forms Authentication Across Domains ................................1214
Using the FormsAuthentication Class.............................................1216
Using the User Class . ......................................................................1220
Configuring Authorization . .....................................................................1221
Authorizing by Role.........................................................................1223
Authorizing Files by Location .........................................................1224
Using Authorization with Images and Other File Types ................1225
Using ASP.NET Membership . ...................................................................1226
Using the Membership Application Programming Interface .........1227
Encrypting and Hashing User Passwords. ......................................1232
Modifying User Password Requirements. .......................................1234
Locking Out Bad Users . ..................................................................1235
Configuring the SQLMembershipProvider . ...................................1237
Configuring the ActiveDirectoryMembershipProvider. .................1239
Creating a Custom Membership Provider . ....................................1244
Using the Role Manager . .........................................................................1246
Configuring the SqlRoleProvider ....................................................1247
Configuring the WindowsTokenRoleProvider ................................1252
Configuring the AuthorizationStoreRoleProvider ..........................1254
ASP.NET 4 Unleashed
xvi
Caching Roles in a Browser Cookie ................................................1256
Using the Roles Application Programming Interface .....................1258
Summary ...................................................................................................1260
Part VII Building ASP.NET Applications
28 Maintaining Application State.................................................................1263
Using Browser Cookies .............................................................................1264
Cookie Security Restrictions............................................................1265
Creating Cookies . ...........................................................................1266
Reading Cookies . ............................................................................1269
Setting Cookie Properties ................................................................1272
Deleting Cookies. ............................................................................1273
Working with Multivalued Cookies ................................................1275
Using Session State....................................................................................1279
Storing Database Data in Session State ...........................................1281
Using the Session Object . ...............................................................1284
Handling Session Events . ...............................................................1285
Controlling When a Session Times Out .........................................1287
Using Cookieless Session State . ......................................................1288
Configuring a Session State Store. ..................................................1290
Configuring SQL Server Session State .............................................1294
Using Profiles ............................................................................................1297
Creating Profile Groups...................................................................1301
Supporting Anonymous Users.........................................................1303
Migrating Anonymous Profiles .......................................................1307
Inheriting a Profile from a Custom Class .......................................1308
Creating Complex Profile Properties...............................................1310
Saving Profiles Automatically..........................................................1317
Accessing Profiles from Components..............................................1321
Using the Profile Manager...............................................................1323
Configuring the Profile Provider .....................................................1326
Creating a Custom Profile Provider ................................................1327
Summary ...................................................................................................1332
29 Caching Application Pages and Data . ....................................................1335
Overview of Caching ................................................................................1335
Using Page Output Caching .....................................................................1337
Varying the Output Cache by Parameter ........................................1338
Varying the Output Cache by Control ...........................................1342
Varying the Output Cache by Header. ...........................................1345
Varying the Output Cache by Browser ...........................................1346
Varying the Output Cache by a Custom Function.........................1347
Specifying the Cache Location. ......................................................1349
Contents
xvii
Creating a Page Output Cache File Dependency............................1351
Expiring the Page Output Cache Programmatically . .....................1353
Manipulating the Page Output Cache Programmatically ..............1358
Creating Page Output Cache Profiles . ............................................1360
Using Partial Page Caching. .....................................................................1361
Using Post-Cache Substitution ........................................................1362
Caching with a User Control . ........................................................1366
Sharing a User Control Output Cache ............................................1370
Manipulating a User Control Cache Programmatically .................1370
Creating a User Control Cache File Dependency ...........................1372
Caching Dynamically Loaded User Controls..................................1373
Using DataSource Caching . .....................................................................1375
Using an Absolute Cache Expiration Policy ...................................1376
Using a Sliding Cache Expiration Policy.........................................1378
Caching with the ObjectDataSource Control .................................1380
Caching with the XmlDataSource Control. ...................................1382
Creating a DataSource Control Key Dependency...........................1383
Using Data Caching. ................................................................................1387
Using the Cache Application Programming Interface....................1387
Adding Items to the Cache . ...........................................................1390
Adding Items with an Absolute Expiration Policy . .......................1390
Adding Items with a Sliding Expiration Policy. .............................1393
Adding Items with Dependencies . .................................................1394
Specifying Cache Item Priorities . ...................................................1396
Configuring the Cache . ..................................................................1397
Using SQL Cache Dependencies. .............................................................1399
Using Polling SQL Cache Dependencies.........................................1399
Configuring Polling SQL Cache Dependencies ..............................1400
Using Polling SQL Cache Dependencies with Page
Output Caching.............................................................................1403
Using Polling SQL Cache Dependencies with
DataSource Caching ......................................................................1405
Using Polling SQL Cache Dependencies with Data Caching .........1406
Using Push SQL Cache Dependencies ............................................1408
Configuring Push SQL Cache Dependencies ..................................1409
Using Push SQL Cache Dependencies with Page
Output Caching.............................................................................1411
Using Push SQL Cache Dependencies with DataSource
Caching .........................................................................................1412
Using Push SQL Cache Dependencies with Data Caching.............1415
Summary ...................................................................................................1416
ASP.NET 4 Unleashed
xviii
30 Localizing Applications for Multiple Languages. ......................................1419
Setting the Current Culture......................................................................1420
Setting a Culture Manually .............................................................1421
Automatically Detecting a Culture .................................................1428
Setting the Culture in the Web Configuration File ........................1432
Culture and ASP.NET Controls ........................................................1433
Using the CultureInfo Class .....................................................................1434
Using the CultureInfo Class to Format String Values.....................1435
Comparing and Sorting String Values. ...........................................1437
Creating Local Resources ..........................................................................1438
Explicit Localization Expressions ....................................................1438
Implicit Localization Expressions. ..................................................1441
Using Local Resources with Page Properties ...................................1443
Retrieving Local Resources Programmatically.................................1444
Creating Global Resources ........................................................................1446
Retrieving Global Resources Programmatically ..............................1448
Using Strongly Typed Localization Expressions .............................1449
Using the Localize Control .......................................................................1450
Summary . .................................................................................................1452
31 Working with the HTTP Runtime . ...........................................................1453
Creating a Custom BuildProvider. ...........................................................1454
Creating a Simple BuildProvider .....................................................1454
Creating a Data Access Component BuildProvider ........................1458
Creating a Custom ExpressionBuilder. ....................................................1464
Creating a Lookup ExpressionBuilder .............................................1465
Creating HTTP Handlers . .........................................................................1470
Creating a Generic Handler.............................................................1470
Implementing the IHttpHandler Interface .....................................1473
Creating an Asynchronous HTTP Handler .....................................1478
Working with HTTP Applications and HTTP Modules . ..........................1482
Creating a Global.asax File ..............................................................1483
Creating Custom HTTP Modules ....................................................1487
Summary ...................................................................................................1489
32 Building Dynamic Data Applications. ......................................................1491
Introducing ASP.NET Dynamic Data ........................................................1491
Building a Dynamic Data Application . ...................................................1492
Working with Dynamic Data Templates ..................................................1496
Making Shared Template Changes ..................................................1497
Creating Type and Entity-Specific Templates .................................1497
Summary ...................................................................................................1500
Contents
xix
剩余1915页未读,继续阅读
2010-08-01 上传
2012-02-10 上传
2008-08-02 上传
2013-01-31 上传
2011-09-21 上传
2008-09-06 上传
2024-11-22 上传
zbx3226209
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- MATLAB实现小波阈值去噪:Visushrink硬软算法对比
- 易语言实现画板图像缩放功能教程
- 大模型推荐系统: 优化算法与模型压缩技术
- Stancy: 静态文件驱动的简单RESTful API与前端框架集成
- 掌握Java全文搜索:深入Apache Lucene开源系统
- 19计应19田超的Python7-1试题整理
- 易语言实现多线程网络时间同步源码解析
- 人工智能大模型学习与实践指南
- 掌握Markdown:从基础到高级技巧解析
- JS-PizzaStore: JS应用程序模拟披萨递送服务
- CAMV开源XML编辑器:编辑、验证、设计及架构工具集
- 医学免疫学情景化自动生成考题系统
- 易语言实现多语言界面编程教程
- MATLAB实现16种回归算法在数据挖掘中的应用
- ***内容构建指南:深入HTML与LaTeX
- Python实现维基百科“历史上的今天”数据抓取教程
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功