Loading...

Jumping from ASP to ASP.NET

ISBN: 978-0-470-39184-6

44 pages

Description
This Wrox Blox introduces you to Visual Web Developer Express 2008 (think of this like Web Matrix on steroids!) and also goes over various Object Oriented Program (OOP) methodologies that you should be familiar with as you begin working with ASP.NET. While this Wrox Blox doesn’t cover actually building a working application, it touches on what n-tier architecture is and why it is a good idea to use it.  Because ASP.NET is such a vast topic, you can’t possibly hope to cover everything in a single Wrox Blox, so, instead, you will create a very basic web site that will employ the most commonly found web-site features (connecting to a database, posting forms, and sending e-mail).

While making the jump from Classic ASP to ASP.NET 3.5 can seem like a daunting task, and while there is no automatic way to convert an existing Classic ASP web site over to ASP.NET, building a web site in ASP.NET from the ground up is very straightforward.

To help make the conversion as easy as possible, you’re first presented with some Classic ASP code that you would have used to perform a given task, then shown the equivalent ASP.NET code as well as a discussion and explanation of the new code.

Lastly, while most Classic ASP developers will be coming from a background strongly rooted in VBScript, this article uses C# instead of VB.NET throughout. However, this shouldn’t deter you in the slightest because it’s assumed that you have no prior knowledge of C# or of ASP.NET in general.

 

Table of Contents

ASP versus ASP.NET 1

The Languages 2

Classic ASP: Interpreted Code 2

ASP.NET: Compiled Code 3

The Development Environments 4

Object-Oriented, Event-Driven Applications 5

. . . And the Winner Is . . . 9

Getting Started 10

Setting up Your Development Environment 10

Setting up Your Database 12

Building WroxPlay 17

Creating the UI . . . Include Files Are out! 18

Maintaining the State of a Form 23

Working with a Database 30

CDONTS or CDO — Sending E-mail 37

Wrapping up 39

About Doug Parsons 40

 

Usage Rights for Wiley Wrox Blox

Any Wrox Blox you purchase from this site will come with certain restrictions that allow Wiley to protect the copyrights of its products. After you purchase and download this title, you:

  • Are entitled to three downloads
  • Are entitled to make a backup copy of the file for your own use
  • Are entitled to print the Wrox Blox for your own use
  • Are entitled to make annotations and comments in the Wrox Blox file for your own use
  • May not lend, sell or give the Wrox Blox to another user
  • May not place the Wrox Blox file on a network or any file sharing service for use by anyone other than yourself or allow anyone other than yourself to access it
  • May not copy the Wrox Blox file other than as allowed above
  • May not copy, redistribute, or modify any portion of the Wrox Blox contents in any way without prior permission from Wiley

If you have any questions about these restrictions, you may contact Customer Care at (877) 762-2974 (8 a.m. - 5 p.m. EST, Monday - Friday). If you have any issues related to Technical Support, please contact us at 800-762-2974 (United States only) or 317-572-3994 (International) 8 a.m. - 8 p.m. EST, Monday - Friday).

 

About the Author
About Doug Parsons

Doug Parsons has been developing Internet applications since Classic ASP 3.0 was released and since then has been an early adopter on each release of the .NET framework. He is currently employed as an Advanced Internet Programmer with a company that provides Internet solutions for local, state, and federal government agencies and entities. To this end, he is currently part of the team responsible for maintaining and deploying the web site of United States Presidential hopeful John McCain. In his free time, he enjoys spending time with his wife and son, coding, playing video games, and helping users on the P2P forums.

Series