Using Data Sets

A DataSet can be used to cache an entire database within an ASP application variable. This would reduce the Database Server Load and speed data access over the life of the application object.The following is a code snippet that calls a Web Service that returns a DataSet. The DataSet in turn stores the data in an application object. myServer.getBooks DataSource new myServer.getBooks() Application AllBooks DataSource.AllBooks() This makes the DataSet available to all instances of the Web...

Understanding Application State

ASP.NET application state management is far improved over the previous ASP incarnations. In addition to the previous application variables, there are also two new facilities, the Cache and Static variables. Application variables are values that are available to any user or page within an application. For the first time, they can be any value you wish to store. In previous versions of ASP, due to threading limitations, Visual Basic objects should not have been stored in application...

Creating an ADOCatalog

0 Creating an ADOCart application allows us to tie our catalog interface to our Web Services. In our ADOCart application, all database interaction is handled via Web Services. 0 Create a new class to explore ADO.NET DataSet operations in order to copy, clone, import, create, and filter. 0 Since our Books data is fairly static, we can retrieve the data in a DataSet once and store that DataSet in an application-level variable. This reduces the database traffic, while still providing quick access...

Info

This code tells the server to output the text Hello World to the user's browser. Alternative shorthand for outputting values is to use the following form, where value is the variable or literal you wish to output. Since that is not much of an example, and nothing you couldn't do as well in classic ASP, or HTML for that matter, let's expand the example a bit.With the code in Figure 1.5, we will use the ASP.NET browser capability function of the Request object. Figure 1.5 Hello World with Browser...