Q&A
| Q1: | When I look at my Task Manager, there's a process called ASPNET_WP that consumes a bunch of memory. What is it? |
A1: | The ASPNET_WP is the worker process that handles the processing of ASPX files for IIS. This application consumes more and more memory based on the number of users accessing your Web site. It has special permissions to access system files and directories because ASP.NET needs access to system resources on the IIS machine. |
| Q2: | What's the deal with PostBack events? I see a lot of code in the Page_Load events of samples in the SDK that checks to see whether the page is being posted back. |
A2: | The PostBack event is extre14mely important to understand. A Form_Load event occurs the first time a page is loaded to a client's browser. Most of the time, you're loading fields from a database or setting default values in controls. Because you can write pages that respond to multiple events on the server, the same page may be posted back to the server a number of times. So, by checking the IsPostBack property, you can avoid rerunning initialization code in events such as Form_Load. The common syntax for checking the IsPostBack property is
|
| Q3: | I've heard of cool things like caching and user controls. Where can I get more information about those topics? |
A3: | In the .NET Framework SDK tutorials that install with Visual Studio .NET, look up the Caching topic under the How do I… section for ASP.NET. There are some great samples of implementing the different caching mechanisms in ASP.NET. |
• 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.