Section 6.2 Web Application Development with ASP.NET in C#
Learning Objectives
After you have completed this section, you should be able to
- use databases in your ASP.NET web applications.
- implement access control to your ASP.NET web applications.
- use master page to create a uniform look and feel for your web applications.
- use ASP.NET Ajax to add Ajax functionality to your ASP.NET web applications.
Activities
- Carefully read the learning objectives.
- Download and install the necessary packages such as Microsoft SQL Server Express and ASP.NET Ajax Control Toolkit from http://www.microsoft.com/express and http://devexpress.com/act
- Find and study some sample applications using ASP.NET Ajax on the Web.
- Watch the presentation for the section;
- Read Chapter 21, Web App Development with ASP.NET in C#: A Deeper Look.
- Revisit sections 18.6 through 18.9 of Chapter 18, Database: SQL, MySQL, LINQ and Java DB.
- Find answers to the study questions below.
- Visit https://dotnet.microsoft.com/en-us/learn/aspnet, and find some useful articles and videos.
- Do exercise 21.4 in Chapter 21.
Study Questions
- What is the master page for a website/application?
- How do you customize the CSS styles for a master page?
- What is a website template? How can you benefit from using a website template in developing new web applications?
- What can you do with the Web Site Administration Tool provided within the Visual Studio Express you installed?
- With Visual Studio Express, how do you create a password-protected ASP.NET website?
- In your ASP.NET web application, how do you connect to a database?
- How do you create a content page accessible only for authenticated users?
- How do you bind database data to a web control such as a DropDownList or GridView through LINQ to SQL classes?
- What is ASP.NET Ajax? What does Ajax stand for?
- What are the differences between traditional web applications and Ajax web applications?
- What are ASP.NET Ajax controls?
- Do you need any additional package for developing Ajax web applications? If you do, where do you download the necessary Ajax extensions package for this section?
- How do you add ASP.NET Ajax controls to the Toolbox of your Visual Studio Express?
- What capabilities does ASP.NET Ajax provide you?
- What is an asynchronous request?
- What is a callback function?
- What are partial-page updates?
- How do you implement a partial-page update using the UpdatePanel control?
- What does the ScriptManager control do?
- How do you use the UpdatePanel control?
- What can ValidatorCalloutExtender controls be used for?
Review
Do the self-review exercises for Chapter 21.
Summary
Read the Chapter 21 summary.