Creating and Programming a Web Application |
Create and configure a Web application.
- Create a new Web application.
- Add Web Forms pages to a Web application.
|
|
|
|
|
Add and configure Web server controls.
- Add Web server controls to a Web Form.
- Configure the properties of Web server controls programmatically.
- Configure Web server control properties by using the Microsoft Visual Studio Property Editor.
- Specify whether events of a control cause a Web Form to post to the server.
- Configure a control to receive postback events.
- Access controls in Web Forms pages when working with naming containers and child controls.
- Create HTML server controls in the designer.
- Set HTML server control properties programmatically.
- Use HTML server controls to programmatically access HTML tags.
- Create HTML controls as elements in an HTML document.
- Use the AdRotator Web server control to manage banners and pop-up windows.
- Use the Button Web server control to send a command to the server when a button is clicked.
- Display a calendar on a Web page by using the Calendar Web server control.
- Implement the CheckBox Web server control.
- Implement the FileUpload Web server control.
- Create and manipulate links on a Web Form by using the HyperLink Web server control.
- Display an image on a Web Form by using the Image Web server control.
- Implement a button on a Web Form by using the ImageButton Web server control.
- Define hotspot regions within an image by using the ImageMap Web server control.
- Use the Label Web server control to display customized text on a Web page.
- Display a hyperlink style button on a Web Form by using the LinkButton Web server control.
- Display lists of information by using controls that derive from the ListControl class.
- Create a Web Form with static text by using the Literal Web server control.
- Implement pagination for controls on a page by using the Pager Web server control.
- Use the Panel Web server control to arrange controls in groups on a page.
- Create a container for a group of View controls by using the MultiView Web server control.
- Use the View Web server control to create a Web application.
- Create a mutually exclusive set of choices by using the RadioButton Web server control.
- Construct a table by using the Table, TableRow, and TableCell Web server controls.
- Enable users to type information into a Web Form by using the TextBox Web server control.
- Create a wizard by using the Wizard Web server control to collect data through multiple steps of a process.
- Use the xml Web server control to create xml data at the location of the control.
- Customize the appearance of Web server controls by using Web control templates.
- Programmatically edit settings in a Web site's configuration file.
- Dynamically add Web server controls to a Web Forms page.
|
|
|
|
|
Create event handlers for pages and controls.
- Create event handlers for a page or control at design time.
- Respond to application and session events.
|
|
|
|
|
Manage state and application data.
- Manage state of an application by using client-based state management options.
- Manage state of an application by using server-based state management options.
- Maintain state of an application by using database technology.
|
|
|
|
|
Implement globalization and accessibility. |
|
|
|
|
Implement site navigation and input validation.
- Use the SiteMap Web server control to display a representation of a Web site's navigation structure.
- Use validation controls to perform Web Forms validation.
- Validate against values in a database for server controls by using a CustomValidator control.
- Create a CustomValidator control and tie it to a custom function.
- Test programmatically whether a user's input passed validation before running code.
- Specify the location of a validation error message for server controls.
- Format validation error messages for server controls.
- Specify the layout for in-place messages on server controls.
- Disable validation for server controls.
- Display custom error messages for server controls.
- Validate server controls programmatically.
|
|
|
|
|
Write an Asp.Net handler to generate images dynamically for display on a Web page. |
|
|
|
|
Configure settings for a Web application.
- Configure system-wide settings in the Machine.config file.
- Configure settings for a Web application in the Web.config file.
- Manage a Web application's configuration by using the Web Site Administration Tool.
|
|
|
|
|
Program a Web application.
- Redirect users to another Web page by using a server-side method.
- Detect browser types in Web Forms.
- Ascertain the cause of an unhandled exception at the page level.
- Programmatically access the header of a Web page.
- Implement cross-page postbacks.
- Assign focus to a control on a page when the page is displayed.
- Avoid performing unnecessary processing on a round trip by using a page's IsPostBack property.
- Access encapsulated page and application context.
- Avoid unnecessary client-side redirection by using the HttpServerUtility.Transfer method.
- Avoid round trips by using client-side scripts.
- Use a page's Async attribute to create a page that has built-in asynchronous capabilities.
- Convert HTML server controls to HTML elements.
|
|
|
|
|
Integrating Data in a Web Application by Using ADO.NET, xml, and Data-Bound Controls |
Implement data-bound controls.
- Use tabular data source controls to return tabular data.
- Use hierarchical data source controls to display hierarchical data.
- Display data by using simple data-bound controls.
- Display data by using composite data-bound controls.
- Display data by using hierarchical data-bound controls.
- Use the FormView control to display the values of a single table record from a data source.
|
|
|
|
|
Manage connections and transactions of databases.
- Configure a connection to a database graphically by using the Connection Wizard.
- Configure a connection by using Server Explorer.
- Configure a connection to a database by using the connection class.
- Connect to a database by using specific database connection objects.
- Enumerate through instances of Microsoft SQL Server by using the DbProviderFactories.GetFactoryClasses method.
- Open a connection by using the Open method of a connection object.
- Close a connection by using the connection object.
- Secure a connection to protect access to your data source.
- Create a connection designed for reuse in a connection pool.
- Control connection pooling by configuring ConnectionString values based on database type.
- Use connection events to detect database information.
- Handle connection exceptions when connecting to a database.
- Perform transactions by using the ADO.NET Transaction object.
|
|
|
|
|
Create, delete, and edit data in a connected environment.
- Retrieve data by using a DataReader object.
- Build SQL commands visually in Server Explorer.
- Build SQL commands in code.
- Create parameters for a command object.
- Perform database operations by using a command object.
- Retrieve data from a database by using a command object.
- Perform asynchronous operations by using a command object.
- Perform bulk copy operations to copy data to a SQL Server computer.
- Store and retrieve binary large object (BLOB) data types in a database.
|
|
|
|
|
Create, delete, and edit data in a disconnected environment.
- Create an instance of the DataSet class programmatically.
- Create a DataSet graphically.
- Create a DataSet programmatically.
- Add a DataTable to a DataSet.
- Add a relationship between tables.
- Navigate a relationship between tables.
- Merge DataSet contents.
- Copy DataSet contents.
- Create a strongly typed DataSet.
- Create DataTables.
- Manage data within a DataTable.
- Create and use DataViews.
- Represent data in a DataSet by using xml.
- Access an ADO Recordset or Record by using the OleDbDataAdapter object.
- Generate DataAdapter commands automatically by using the CommandBuilder object.
- Generate DataAdapter commands programmatically.
- Populate a DataSet by using a DataAdapter.
- Update a database by using a DataAdapter.
- Resolve conflicts between a DataSet and a database by using the DataAdapter.
- Respond to changes made to data at the data source by using DataAdapter events.
- Perform batch operations by using DataAdapters.
|
|
|
|
|
Manage xml data with the xml Document Object Model (DOM).
- Read xml data into the DOM by using the Load method.
- Modify an xml document by adding and removing nodes.
- Modify nodes in an xml document.
- Write data in xml format from the DOM.
- Work with nodes in the xml DOM by using XmlNamedNodeMap and the XmlNodeList.
- Handle DOM events.
- Modify xml declaration.
|
|
|
|
|
Read and write xml data by using the XmlReader and XmlWriter.
- Read xml data by using the XmlReader.
- Read all xml element and attribute content.
- Read specific element and attribute content.
- Read xml data by using the XmlTextReader class.
- Read node trees by using the XmlNodeReader.
- Validate xml data by using the XmlValidatingReader.
- Write xml data by using the XmlWriter.
|
|
|
|
|
Creating Custom Web Controls |
Create a composite Web application control.
- Create a user control.
- Convert a Web Forms page to a user control.
- Include a user control in a Web Forms page.
- Manipulate user control properties.
- Handle user control events within the user control code-declaration block or code-behind file.
- Create instances of user controls programmatically.
- Develop user controls in a code-behind file.
- Create a templated user control.
|
|
|
|
|
Create a custom Web control that inherits from the WebControl class.
- Create a custom Web control.
- Add a custom Web control to the Toolbox.
- Individualize a custom Web control.
- Create a custom designer for a custom Web control.
|
|
|
|
|
Create a composite server control.
- Create a base class for composite controls.
- Create a composite control.
|
|
|
|
|
Develop a templated control.
- Create a templated control.
- Develop a templated data-bound control.
|
|
|
|
|
Tracing, Configuring, and Deploying Applications |
Use a Web setup project to deploy a Web application to a target server.
- Create a Web setup project.
- Configure deployment properties for a Web setup project.
- Install a Web application on a target server.
|
|
|
|
|
Copy a Web application to a target server by using the Copy Web tool. |
|
|
|
|
Precompile a Web application by using the Publish Web utility. |
|
|
|
|
Optimize and troubleshoot a Web application.
- Customize event-level analysis by using the Asp.Net health-monitoring API.
- Use performance counters to track the execution of an application.
- Troubleshoot a Web application by using Asp.Net tracing.
- Optimize performance by using the Asp.Net Cache object.
|
|
|
|
|
Customizing and Personalizing a Web Application |
Implement a consistent page design by using master pages.
- Create a master page.
- Add a ContentPlaceHolder control to a master page.
- Specify default content for a ContentPlaceHolder.
- Reference external resources in a master page.
- Define the content of a particular page in a content page.
- Create a content page.
- Add content to a content page.
- Reference a master page member from a content page.
- Handle events when using master pages.
- Create a nested master page.
- Change master pages dynamically.
|
|
|
|
|
Customize a Web page by using themes and user profiles.
- Apply a theme declaratively.
- Apply a theme programmatically.
- Apply a user-selected theme programmatically.
- Define custom themes.
- Define the appearance of a control by using skins.
- Enable users to personalize an application by using Web Parts.
- Track and store user-specific information by using user profiles.
- Personalize a Web page by dynamically adding or removing child controls in a Placeholder control at run time.
|
|
|
|
|
Implement Web Parts in a Web application.
- Track and coordinate all Web Parts controls on a page by adding a WebPartManager control.
- Connect Web Parts to each other by using connection objects.
- Divide a page that uses Web Parts into zones by using WebPartZones.
- Present a list of available Web Parts controls to users by using CatalogPart controls.
- Enable users to edit and personalize Web Parts controls on a page by using EditorPart controls.
|
|
|
|
|
Implementing Authentication and Authorization |
Establish a user's identity by using forms authentication.
- Configure forms authentication for a Web application by using a configuration file.
- Enable cookieless forms authentication by setting the cookieless attribute.
- Use membership APIs and the Membership class to manage users.
- Enable anonymous identification.
|
|
|
|
|
Use authorization to establish the rights of an authenticated user.
- Manage roles in the Web Site Administration Tool.
- Ascertain whether a specific user is in role.
- Get the roles for a specific user by using the Roles object or the User object.
- Store role information in a cookie.
- Restrict access to files by using file authorization.
- Restrict access to portions of an application by using URL authorization.
|
|
|
|
|
Implement Microsoft Windows authentication and impersonation.
- Establish a user's identity by using Windows authentication.
- Use impersonation to control access to resources.
|
|
|
|
|
Use login controls to control access to a Web application.
- Use the Login Web server control.
- Use the LoginView Web server control to view a user's login status.
- Use the PasswordRecovery Web server control to allow a user to recover a password.
- Use the LoginStatus Web server control to display either a login or logout link.
- Use the LoginName Web server control to display a user's login name on a Web page.
- Use the CreateUserWizard Web server control as a UI for creating new Web application user accounts.
- Use the ChangePassword Web server control to allow users to change their passwords.
- Specify the membership provider used for logging on.
- Configure a mail server so that login controls can be used to send e-mail messages to users.
|
|
|
|
|
Creating Asp.Net Mobile Web Applications |
Create a mobile Web application project. |
|
|
|
|
Use device-specific rendering to display controls on a variety of devices. |
|
|
|
|
Use adaptive rendering to modify the appearance of Web server controls. |
|
|
|
|
Use the mobile Web controls to display content on a device. |
|
|
|
|