Flylib.com

Books Software

 
 
 

Conventions Used in This Book

only for RuBoard

Conventions Used in This Book

The following typographic conventions are used in this book:

  • Nearly every code sample in this book is provided in both Visual Basic.NET and C#. Some code samples are language-neutral, using only HTML and ASP.NET server controls, and are only provided once. In listings with multiple versions of the code sample, each portion will be identified by [VB] for Visual Basic.NET and [C#] for C#. Line numbers are provided for reference only and are not required in your code.

  • Code lines, commands, statements, variables , and any text you type or see onscreen appears in a mono typeface. Bold mono typeface is used to represent the user 's input.

  • Placeholders in syntax descriptions appear in an italic mono typeface. Replace the placeholder with the actual filename, parameter, or element it represents.

  • Italics highlight technical terms when they're being defined.

  • The graphics/ccc.gif icon is used before a line of code that is really a continuation of the preceding line. Sometimes a line of code is too long to fit as a single line on the page. If you see graphics/ccc.gif before a line of code, remember that it's part of the line immediately above it.

  • The book also contains Notes, Tips, and Cautions to help you spot important or useful information more quickly. Some of these are helpful shortcuts to help you work more efficiently .

only for RuBoard
only for RuBoard

Part I: What Is .NET?

IN THIS PART
 

1 What Is ASP.NET?

 

2 What Is ADO.NET?

only for RuBoard
only for RuBoard

Chapter 1. What Is ASP.NET?

IN THIS CHAPTER

  • The Major Differences Between ASP and ASP.NET

  • Breaking Down the Parts of ASP.NET

  • Summary

At the same time that many Web developers were just starting to wrap their heads around Microsoft's Active Server Pages (ASP) 2.0, the development teams at Microsoft were hard at work preparing ASP.NET, the next generation of ASP. The development team, led by Mark Anders and Scott Guthrie, wrote ASP.NET from scratch, maintaining the good parts of ASP while radically changing its inner workings and extending its functionality to a new level. The goal was to enable Rapid Application Development (RAD) for Internet-based applications that's seamlessly integrated with the entire .NET Framework. The developer now has access to all the same APIs and components in an ASP.NET application that he would have with a Win32 application.

ASP provided a relatively easy way to create dynamic Internet applications, but the developer still had to write too much code. Unlike other Microsoft products, such as Visual Basic, ASP required code to be written for everything rather than using intrinsic controls for commonly performed functions.

For instance, let's say you want to show the results of a database query in a table on an ASP page. Unless you're using Visual Interdev or have the Script Library, there's no way to drag-and-drop a data-based table on your page, bind it to a data source, and run the page. You have to create a pretty large mix of HTML elements and server script to accomplish this. ASP.NET solves the problem of excessive coding by providing a rich set of stock server controls.

Don't panic. Learning ASP.NET will be challenging but fun. One of the great benefits of ASP.NET is that it can run side-by-side on the same installation of Internet Information Server (IIS) as ASP. You can continue to run and build your existing ASP applications while you learn how to build ASP.NET applications. As a matter of fact, most of the ASP object model was maintained in ASP.NET, with changes made only where it was absolutely necessary. The Application , Session , Response , Request , and Server objects from classic ASP are part of ASP.NET as well, providing a familiar development structure.

This chapter will provide a brief overview of the major features of ASP.NET and the .NET Framework.

Note

This book is intended to teach you how to program ASP.NET and ADO.NET for data-driven Web applications. It is outside the scope of this book to teach you the basics of programming ASP.NET. This chapter is meant more as a refresher or overview of ASP.NET. If you want a comprehensive book on ASP.NET read ASP.NET: Tips, Tutorials and Code (Sams Publishing, ISBN: 0-672-32143-2).


In this chapter you will learn about:

  • The major differences between ASP and ASP.NET

  • HTML server controls

  • ASP.NET server controls

  • Server-side event handling

  • Multilanguage support

  • Web services

  • Session state management

only for RuBoard