Introduction to ASP.NET
ASP.NET is an object-oriented, event-driven development platform for writing Web-based applications. Before .NET, Active Server Pages was the core Microsoft technology for developing applications that ran through the browser. ASP was a great platform, and it truly revolutionized the way Web applications were written, but it had lots of room for improvement. With ASP.NET, the gap between writing Windows-based applications and Web-based applications has been closed.Because ASP.NET is based on the .NET Framework, the same classes in the Framework class library (FCL) are available to all .NET-based applications. That means the same coding model that you use to write Windows Forms applications is used to write ASP.NET applications. It also means you can write ASP.NET applications in any .NET language.One of the drawbacks to writing ASP applications is the scalability issue. Because ASP pages are written in script, the code must be interpreted each time a page is accessed. To improve performance, developers write complex caching schemes, use different session state handling optimizations to improve page throughput, and move code into compiled COM components to increase performancethat all changes with .NET. All ASP.NET applications are compiled. There's no interpreted script of server-side code, and the ASP.NET runtime is a multithreaded asynchronous application, so the core infrastructure is more scalable than ASP. The following bullets highlight some of the major improvements and benefits that ASP.NET gives you, and should also serve as a list of why ASP.NET is so much better than ASP:
- Using the various caching methods in ASP.NET, you can drastically improve application performance with a simple page directivenot any complex code.
- Using the Web.Config configuration file, you can implement robust page- and directory-level security without writing code for each page.
- Using Visual Studio .NET, you have the same Code Editor features that Windows Forms applications have, including auto-complete and auto-list members.
- Debugging ASP.NET applications is just like debugging Windows applications. All the great debugging features come from Visual Studio .NET, not the language or type of application you're writing.
- The event-driven model familiar to Visual Basic 6 developers and Windows Forms development is the same in ASP.NET, which makes application development more logical and very rapid.
- Visual Studio .NET provides a vast array of controls, including validation controls, grid controls, and list controlsall of which support data binding.
- ASP.NET provides several ways to implement session state, including page level, session level, and application level. The state data can be stored in memory, in cookies, in a Windows Service process, or in a SQL Server database, giving you great options for designing scalable applications.
- ASP.NET separates the visual pages from the page logic, giving you increased flexibility in how you design and develop applications.
- ASP.NET applications are 100% compiled.
To learn how to use all these great features, let's start writing an ASP.NET application.
• Table of Contents
• Index
Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days
By
Jason Beres
Publisher
: Sams Publishing
Pub Date
: January 14, 2003
ISBN
: 0-672-32421-0
Pages
: 696
Sams Teach Yourself Visual Studio .NET in 21 Days will help developers that are new to application development and experienced developers understand how to use the .NET Framework and Visual Studio .NET to rapidly develop any type of computer application. The Visual Studio .NET development environment is the most comprehensive developer tool ever created, putting that together with the .NET Frameworks' Class Libraries, the developer has everything he or she needs to get up-to-speed on Microsoft's latest revolution in application development. This book will guide the developer through using the VS .NET IDE, the Visual Basic .NET and C# language, and the supporting tools available from Microsoft to create Windows and Web-based applications. The market is full of books that pretty much say the same thing, which is already available in the help files, the author of this book has written and deployed over a dozen successful applications using Visual Studio .NET and the .NET Framework. All of his expertise and experience is used to give you the most comprehensive title on using Visual Studio .NET.