---------------------------
General Notes - Data Access
---------------------------
Many of the examples in this book use SQL Server. In most cases, it is
assumed that you are using SQL Server Express. However, you can modify
the connection string in the <connectionStrings> section of the
web.config file to use a different database, such as the full version
of SQL Server.
Many of the examples that use data access require the Northwind or Pubs
sample databases. To install these databases, you can use the provided
SQL scripts:
* Use InstNwnd.sql if you don't already have the Northwind database.
* Use InstNwnd.sql if you don't already have the Pubs database.
* Use EmployeesProcedures.sql to install the stored procedures for seleting,
insert, updating, deleting, and paging Employees records.
-----------------------
Chapter 17 - Navigation
-----------------------
The custom navigation provider assumes certain navigation tables and
a GetSiteMap stored procedure.
* Use SiteMap.sql to install the table and stored procedure
* Modify the connection string in the web.config file as required.
---------------------------------
Chapter 20 - Forms Authentication
---------------------------------
The examples in this chapter assume you are using SQL Server Express.
1.) Open the web.config file in the Chapter20\SimpleForms directory.
2.) Review the connection string with the name MyLoginDb and update it
if your SQL Server Express instance has a different instance name.
3.) Open the Chapter20\SimpleForms.sln Visual Studio Solution with
Visual Studio.
4.) Open Server Explorer in Visual Studio.
5.) Connect to the file-based database Chapter20\App_Data\CredStore.mdf to
review the user name and password combinations you can use for the
log-in page.
-----------------------
Chapter 21 - Membership
-----------------------
The examples in this chapter assume you are using SQL Server Express.
1.) Open the Visual Studio solution Membership.sln in Visual Studio.
2.) Create an aspnetdb database using aspnet_regsql.exe as described in
Chapter 21.
3.) Review the connection strings in the <connectionStrings> configuration
section of the web.config files of all projects in the solution.
Update the data source property if you are not using SQL Server Express or
you use your own instance name for SQL Server.
4.) Perform the following steps for each web site in the solution:
4.1) Create users for Chapter21\Membership in the ASP.NET Configuration (WAT).
4.2) Create users for Chapter21\MembershipAPI in the ASP.NET Configuration (WAT).
-----------------------------------
Chapter 22 - Windows Authentication
-----------------------------------
1.) Share the directory Chapter22 as a virtual Directory/Web Application in
the IIS management console. Use the name "WinAuth" for the
Virtual Directory/Web Application.
2.) Disable anonymous access and enable Windows Authentication through the IIS
management console.
------------------
Chapter 23 - Roles
------------------
1.) Open the solution Chapter23\RolesDemo.sln in Visual Studio.
2.) Open the ASP.NET Configuration (WAT) for the project Chapter23\RolesDemo.
3.) Create three roles named "Admin", "Contributor", "Reader" and "Designer"
through the WAT.
4.) Create some users and assign them to the roles you just created.
5.) Run the application and test it.
6.) Share the directory Chapter23\WinRoles as Virtual Directory/Web Application
using the IIS management console.
7.) Disable anonymous access and enable Windows Authentication for the virtual
directory.
---------------------
Chapter 24 - Profiles
---------------------
The custom profile provider assumes certain site map tables in the
aspnet database.
* Use ProfileProvider.sql to install the Users table and stored procedures.
* Modify the connection string in the web.config file as required.
-------------------------
Chapter 25 - Cryptography
-------------------------
The examples in this chapter assume you are using SQL Server Express.
1.) Open the solution Chapter25\Cryptography.sln in Visual Studio
2.) Open web.config file of the web site Chapter25\EncryptionSamples.
3.) Update the connection string DemoSql if you do not use SQL Server Express
with the instance name SQLEXPRESS.
--------------------------------------
Chapter 26 - Custom Memberhip Provider
--------------------------------------
The examples in this chapter assume you are using SQL Server Express.
1.) Open the solution Chapter26\CustomProviders.sln in Visual Studio.
2.) Open the web.config file of the Chapter26\TestXmlProvider web site
3.) Search for the XmlMembership membership provider configuration in the
<membership> configuration section.
4.) Update the fileName attribute to point to a location where you have write
access rights.
If you share the directory through IIS, the user of the application pool
(e.g. Network Service) needs to have write permissions for this directory.
5.) Search for the XmlRoles roles provider configuration in the <roleManager>
configuration section.
6.) Update the fileName attribute to point to a location where you have write
access rights.
If you share the directory through IIS, the user of the application pool
(e.g. Network Service) needs to have write permissions for this directory.
----------------------
Chapter 31 - Web Parts
----------------------
1.) Open the solution Chapter30\WebParts.sln in Visual Studio.
2.) Update the data source property of every connection string in the web.config
files of the web sites in the solution to point to your SQL Server instance.
-------------------------
Chapter 32 - ASP.NET AJAX
-------------------------
The autocomplete web service uses the Employees table from the Northwind database.
* Use the InstNwnd.sql script if you don't already have the Northwind database.
* Modify the connection string in the web.config file as required.
The ApplicationServices project uses SQL Server Express for authentication.
If you are using the full version of SQL Server you need to create the database
using aspnet_regsql.exe, remove the standard connection string by using
<remove name="LocalSqlServer"/>, and add a new connection string with the name
"LocalSqlServer" and the correct connection string.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
作 者: Matthew MacDonald 等 著 博思工作室 译 丛 书 名:图灵程序设计丛书 出 版 社: 人民邮电出版社 ISBN:9787115253293 出版时间:2011-06-01 《ASP.NET 4高级程序设计(第4版)》是ASP.NET领域的鸿篇巨制,全面讲解了ASP.NET4的各种特性及其背后的工作原理,并给出了许多针对如何构建复杂、可扩展的网站从实践中得出的建议。《ASP.NET 4高级程序设计(第4版)》还深入讲述了其他ASP.NET图书遗漏的高级主题,如自定义控件的创建、图像处理、加密等。此外,《ASP.NET 4高级程序设计(第4版)》专门提供了两章的内容来教你如何用Ajax 技术制作快速响应的页面,以及如何使用微软的ASP.NETAJAX平台。另外,还专门介绍了ASP.NET4 新增的功能,如MVC 和动态数据等。 《ASP.NET 4高级程序设计(第4版)》适合各层次的ASP.NET程序员阅读。 从别人哪里下载的,希望和大家一起分享。共成长。
资源推荐
资源详情
资源评论
收起资源包目录
ASP.NET4高级程序设计(第4版)源码 (1777个子文件)
Global.asax 3KB
Global.asax 3KB
Global.asax 3KB
Global.asax 3KB
Global.asax 2KB
Global.asax 1KB
Global.asax 1KB
Global.asax 1KB
Global.asax 1KB
Global.asax 989B
Global.asax 888B
Global.asax 111B
Global.asax 105B
Customers.ascx 4KB
Customers.ascx 4KB
GridViewPager.ascx 2KB
GridViewPager.ascx 2KB
GridViewPager.ascx 2KB
GridViewPager.ascx 2KB
LinkTable.ascx 1KB
Integer_Edit.ascx 1KB
Integer_Edit.ascx 1KB
Integer_Edit.ascx 1KB
Integer_Edit.ascx 1KB
Decimal_Edit.ascx 1KB
Decimal_Edit.ascx 1KB
Decimal_Edit.ascx 1KB
Decimal_Edit.ascx 1KB
DateTime_Edit.ascx 951B
DateTime_Edit.ascx 951B
DateTime_Edit.ascx 951B
DateTime_Edit.ascx 951B
MultilineText_Edit.ascx 762B
MultilineText_Edit.ascx 762B
MultilineText_Edit.ascx 762B
MultilineText_Edit.ascx 762B
Text_Edit.ascx 734B
Default.ascx 732B
Text_Edit.ascx 701B
Text_Edit.ascx 701B
Text_Edit.ascx 701B
Default_Insert.ascx 656B
Default_Insert.ascx 656B
Default_Insert.ascx 656B
Default_Insert.ascx 656B
Default_Edit.ascx 648B
Default_Edit.ascx 648B
Default_Edit.ascx 648B
Default_Edit.ascx 648B
VaryingDate.ascx 567B
ForeignKey_Edit.ascx 527B
ForeignKey_Edit.ascx 527B
ForeignKey_Edit.ascx 527B
ForeignKey_Edit.ascx 527B
Header.ascx 511B
Enumeration_Edit.ascx 510B
Enumeration_Edit.ascx 510B
Enumeration_Edit.ascx 510B
Enumeration_Edit.ascx 510B
Default.ascx 505B
Default.ascx 505B
Default.ascx 505B
TestUC2.ascx 466B
LogOnUserControl.ascx 352B
LogOnUserControl.ascx 352B
ForeignKey.ascx 317B
Enumeration.ascx 317B
ForeignKey.ascx 317B
Enumeration.ascx 317B
ForeignKey.ascx 317B
Enumeration.ascx 317B
ForeignKey.ascx 317B
Enumeration.ascx 317B
Boolean.ascx 269B
Boolean.ascx 269B
Boolean.ascx 269B
Boolean.ascx 269B
ForeignKey.ascx 226B
ForeignKey.ascx 226B
ForeignKey.ascx 226B
ForeignKey.ascx 226B
TestUC1.ascx 203B
EmailAddress.ascx 195B
EmailAddress.ascx 195B
EmailAddress.ascx 195B
EmailAddress.ascx 195B
REDText.ascx 193B
TimeDisplay.ascx 182B
Children.ascx 179B
Url.ascx 179B
Url.ascx 179B
Children.ascx 179B
Children.ascx 179B
Url.ascx 179B
Children.ascx 179B
Url.ascx 179B
Enumeration.ascx 177B
Enumeration.ascx 177B
Enumeration.ascx 177B
Enumeration.ascx 177B
共 1777 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
资源评论
- sunning2_2014-08-04很不错,值得学习
- 如斯光年2015-11-20谢谢分享visual studio 2010版web开发代码.
- srdhr2014-04-14是ASP.NET4高级程序设计书的源码, 配合书看效果很好. 多谢
- qq_172036792014-07-04系统高大上。
西邮狂人
- 粉丝: 2
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功