Skip to Main Content
Professional ASP.NET 2.0 Special Edition
book

Professional ASP.NET 2.0 Special Edition

by Bill Evjen, Scott Hanselman, Devin Rader, Farhan Muhammad, S. Srinivasa Sivakumar
October 2006
Intermediate to advanced content levelIntermediate to advanced
1588 pages
37h 59m
English
Wrox
Content preview from Professional ASP.NET 2.0 Special Edition

Chapter 14. Introduction to the Provider Model

Before you begin using the provider model introduced in ASP.NET 2.0, take a step back. You probably already know that ASP.NET is a way to build applications for the Internet. For the Internet means that an application's display code travels over HTTP— which is a stateless protocol. ASP.NET works with a disconnected architecture. The simple nature of this model means that requests come in and then responses are sent back. On top of that, ASP.NET does not differentiate one request from another. The server containing an ASP.NET application is simply reacting to any request thrown at it.

This means that a developer building a Web application has to put some thought into how users can remain in context between their requests to the server as they work through the application. Keeping a user in context means recording state, the state of the user, to some type of data store. This can be done in multiple ways, and no one way is the perfect way. Rather, you have to choose one of the available methods.

You can read about maintaining state in an ASP.NET application in Chapter 21, "State Management."

State can be stored via multiple methods, some of which include:

  • Application State

  • Session State

  • The Cache Object

You use all these methods on the server, but you can also employ your own custom methods—such as simply storing state in a database using your own custom schema. It is also possible to write state back to the clients, either directly on their ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition

Andrew Troelsen
ASP.NET 3.5 Unleashed

ASP.NET 3.5 Unleashed

Stephen Walther
Beginning Visual C#® 2005

Beginning Visual C#® 2005

Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White

Publisher Resources

ISBN: 9780470041789Purchase book