Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
NET
Objectives
HTML Controls:
HTML controls are used to add static HTML elements to a Web
page.
By default, HTML controls are not accessible to the server-side
code in the Web page.
To enable your server-side code to interact with HTML
controls, you must specify that the control runs on the server.
Web Server Controls:
Web Server controls are .NET Framework objects that are
converted by ASP.NET to HTML elements at run time.
On receiving a request for a Web page containing Web server
controls, ASP.NET :
Generates HTML output based on the Web server controls.
Returns the HTML output to the browser.
Standard Controls:
This group contains controls that provide common user
interface elements.
Standard controls include:
TextBox
ListBox
Standard Controls
DropDownList
Checkbox
RadioButton
Button
Image
Table
Calendar
Data Controls:
This group contains controls used to manipulate data stored in
databases, XML files, and other .NET Framework objects.
Data controls include:
Grid View
SqlDataSource
Data Controls
Validation Controls:
This group contains controls that are used to validate user
input.
Simple validation is done on the client side by generating
JavaScript code. This reduces the load on the Web server and
improves responsiveness.
Complex validation is done on the Web server.
Validation controls include:
RequiredFieldValidator
CompareValidator
Validation Controls
Navigation Controls:
The controls in this group are used to enable the user to move
through the Web site.
Navigation controls include:
Menu
TreeView
SiteMapPath
Navigation Controls
Login Controls:
The controls in this group are used to create login and sign-up
pages for your Web sites.
Login controls include:
Login
ChangePassword
PasswordRecovery
Login Controls
WebPart Controls:
The controls in this group can be used to build the framework
for dynamic Web pages.
These controls are typically used in portal-type Web
applications.
WebPart controls include:
WebPartManager
WebPartZone
AutoPostBack Property:
Some Web server controls support the AutoPostBack
property.
This property controls whether user interaction with the control
should invoke a round-trip request to the server.
EnableViewState Property:
This property determines whether the control should retain its
state for the duration of the postback.
This property should be set to true for those controls whose
properties are set in server-side code.
Problem Statement:
You are a developer in the Adventure Works organization, a
fictitious bicycle manufacturer. You have been asked to assist
in the development of the 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
taken. You have been asked to carry out a number of specific
tasks to implement various elements of this design.
You will also add and review a Web.sitemap file that will be
used to add navigation features to the Web application.
Additionally, you will add and review an advertising schedule
file that will be used to add dynamic image display features to
the Web application.
Solution:
To solve this problem, you need to perform the following tasks:
1. Build the Graphical User Interfaces with HTML Controls
a. Review the proposed design of the Survey.aspx page.
b. Open the Adventure Works Web site.
c. Define the Survey.aspx page layout by using HTML controls in Design view.
d. Define the Survey.aspx page layout by modifying HTML markup in Source
view.
e. Add HTML Input controls to the Web page.