14 ASP - Net Session20
14 ASP - Net Session20
NET
Objectives
Problem Statement:
You are a developer in the Adventure Works organization, a
fictitious bicycle manufacturer. You have been asked to assist
in creating a new Business-to-Consumer (B2C) Web
application and a related Business-to-Employee (B2E) extranet
portal.
Decisions on the design of the application have already been
made. You have been asked to carry out a number of specific
tasks in order to implement various elements of this design. As
part of the first phase of the B2C development, you have been
asked to prototype various performance related techniques for
the Web application.
Solution:
To solve this problem, you need to perform the following task:
1. Implement Asynchronous Processing in Web Applications
a. Enable asynchronous processing on a page.
b. Add asynchronous event handlers for calling a Web service and
receiving data from the Web service.
c. Test the asynchronous calling of the Web service.
Profile providers:
A profile provider enables ASP.NET to store and retrieve
profiles by using a common API, regardless of the underlying
data storage mechanism.
The default provider is the
System.Web.Profiles.SQLProfileProvider class,
which uses Microsoft SQL Server as its storage mechanism.
To use the default provider, you must create a suitable
database on the computer running SQL Server. You can do
this by using the regsql.exe tool.
A custom profile provider can also be created, in case profiles
need to be stored in a database other than Microsoft SQL
Server.
Applying a Theme:
A theme can be specified for a particular page by using the <
%@Page%> directive as:
<%@ Page Theme = “BlueSky”%>
A theme can be specified for the entire application in the root
Web.config file as:
<configuration>
<system.Web>
<pages theme =“BlueSky”/>
</system.web>
</configuration>
Problem Statement:
You are a developer in the Adventure Works organization, a
fictitious bicycle manufacturer. You have been asked to assist
in creating a new Business-to-Consumer (B2C) Web
application and a related Business-to-Employee (B2E) extranet
portal.
Decisions on the design of the application have already been
made. You have been asked to carry out a number of specific
tasks in order to implement various elements of this design. As
part of the first phase of the B2C development, you have been
asked to prototype personalization and themes for registered
members of the Web site.
Solution:
To solve this problem, you need to perform following tasks:
1. Configure Personalization
a. Open the starter solution.
b. Add a connection string for the profile system.
c. Add personalization providers.
d. Add personalization properties.
e. Control anonymous identification.
2. Implement Personalization Functionality
a. Review the UpdateProfile.aspx page.
b. Retrieve profile data at run time.
c. Update profile data at run time.
d. Test the profile functionality of the Web site.