An ASP.NET Web Application in Action - Perspective
(Page 5 of 5 )
Now that you’ve read this chapter, you should have a general understanding of how ASP.NET applications work and what software you need for developing these applications. With that as background, you’re ready to learn how to develop ASP.NET applications of your own. And that’s what you’ll learn to do in the next two chapters.
Terms
web application web page web form | session state session state object session ID |
client/server application client | application state application state object |
server | profile |
HTTP (Hypertext Transfer Protocol) web browser | .NET Framework .NET Framework Class Library |
web server | class |
IIS (Internet Information Services) DBMS (database management system) LAN (local area network) intranet | namespace CLR (Common Language Runtime) IL (Intermediate Language) MSIL (Microsoft Intermediate |
static web page HTML document | Language) Common Type System |
HTML (Hypertext Markup Language) URL (Uniform Resource Locator) HTTP request HTTP response domain name | standalone environment development server SQL Server Express FPSE (FrontPage Server Extensions) FTP (File Transfer Protocol) |
dynamic web page server control | FTP server business class |
application server application mapping round trip postback state | aspx code code-behind file page directive attribute render |
stateless protocol | assembly |
view state | |
About the book’s applications
You can download all of the applications that are presented in this book from our web site (www.murach.com). Then, you can run the applications, review all of their code, and experiment with them on your own system. For more information about downloading and running these applications, please read appendix A.
About the exercises
If you’re new to ASP.NET web programming, we recommend that you practice what you’ve learned after you finish each chapter in the first section of this book. To help you do that, we provide exercises for each of these chapters. Most of these exercises use directories and files that you can download from our web site. Before you start the exercises, then, you’ll need to install these directories and files. When you do, they’ll be placed in a directory named ASP.NET 3.5 VB on your C drive.
By the time you complete section 1, you should be ready to start building applications of your own. Because of that, we don’t include exercises for the remaining chapters. Instead, as you go through each chapter, you can use the techniques that are illustrated on your own application. When you’re done, you can compare your application with the one you’ve downloaded.
Exercise 1-1 Use your web browser to run Internet applications
Open your web browser and type in this URL:
http://www.microsoft.com
Then, search for information about Visual Web Developer 2008 Express Edition. This of course is the site that you can use to download Visual Web Developer 2008 Express and SQL Server 2005 Express for free. As you move from page to page, note that some are static html pages and others are dynamic aspx pages.
Type this URL into your web browser:
http://www.discountasp.netThen, click on some of the links on the home page, and note which pages are static and which are dynamic.
Exercise 1-2 Use your web browser to run the Shopping Cart application on your PC
In this exercise, you’ll use your web browser to run the Shopping Cart application that’s illustrated in this chapter. This assumes that you’ve already installed IIS, Visual Studio 2008, and the files for these exercises. When you get this application running, you’ll know that you’ve got IIS and the application set up correctly on your PC.
Create a virtual directory for the Shopping Cart application
Use the procedure in figure B-1 of appendix B (Windows XP) or figure C-1 of appendix C (Windows Vista) to create a virtual directory named Ch01Cart for the application in C:\ASP.NET 3.5 VB\Ch01Cart.
Run the Shopping Cart application
Open your web browser, and type in the following URL, which uses the virtual directory as the path:
http://localhost/Ch01Cart/Order.aspx This should start the Shopping Cart application that’s shown in figure 1-1. If it doesn’t, you need to make sure that IIS is installed, that the exercise files are installed, and that you did step 1 correctly.
Select a product from the drop-down list on the Order page that’s displayed. Note that this starts a postback that returns the Order page with the data and image for the product that was selected.
Enter a quantity and click the Add to Cart button to display the Cart page. Then, click the Continue Shopping button to return to the Order page.
Continue to experiment with this application until you understand how it works. Then, click the Close button in the upper right corner of the browser window to end the application.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
|
This article is an excerpt from chapter one of Murach's ASP.NET 3.5 Web Programming with VB 2008, written by Anne Boehm (Murach, 2008; ISBN: 1890774472). Check it out today at your favorite bookstore. Buy this book now.
|
|