NCS Logo - Click for home page Northstar Developer Center
Platforms
All Platforms
.NET Framework (1.x - 4.x)
Active Server Pages
ASP.NET
C#
SQL Server
VB.NET
Visual Basic

Keywords
.NET Data Types
.NET E-mail
.NET Events
.NET Functions
.NET Object Programming
.NET System.Configuration
.NET System.Diagnostics
.NET System.IO
.NET System.Net
.NET System.Net.Sockets
Active Data Objects
ASP Architecture
ASP Black Belt
ASP Built-in Functions
ASP Built-in Objects
ASP Debugging
ASP Performance
ASP Security
ASP Syntax
ASP.NET Authentication
ASP.NET Controls
ASP.NET Data Access
ASP.NET Features
ASP.NET Master Pages
ASP.NET Page Events
ASP.NET Security
ASP.NET ViewState
Atom
Certifications
COM, DCOM, COM+
Data Access
E-Mail
Errors
Exporting Data
HTML Tips
IIS
Object-Oriented Programming
RSS
SQL
Uncategorized ASP Tips
VB API Programming
VB Forms
VB Syntax
XML

Book Support
Visual Basic 6 Bible
ASP Bible
ASP Weekend Crash Course
ASP.NET At Work
Creating Web Services

Passing Variables Between Pages

Written by Eric Smith, Northstar Computer Systems LLC

A user asked how to pass a “variable” between pages without using the Session object. Without using the Session or Application object, there is currently (IIS 4.0) not a way to do this. (Windows 2000 folks, there is...hang on a sec) You can pass data between pages in a number of ways:

- Make it part of the URL and be accessible through the Request.QueryString collection
- Invisible form fields that are accessible through the Request.Form collection
- Save the data to a disk file and reopen it in the next page
- Save the data to a database table and open it in the next page

In Windows 2000 and IIS 5.0, you can use the Server.Transfer method to move some information from one page to another. For instance, any data in the Request object will be made available to the second page. However, local variables that you declare won’t be available in the new page.

Keywords: [ Uncategorized ASP Tips ]

Publication Date: 6/1/2000