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

Error When Creating Cookies

Written by Eric Smith, Northstar Computer Systems LLC

If you're creating cookies to be sent back to the user's browser, you use the Response.Cookies collection. However, you need to do this before you send any HTML to the page. The reason for this is that the cookie commands go into the page header, which has to be created before any HTML is sent.

The exception to this rule is if your web page is being buffered, either on a per-page basis (using Response.Buffer = True) or on a site-wide basis by configuring the option in the IIS manager. If the page is buffered, the page is completely built before anything is sent to the user's browser.

Keywords: [ ASP Built-in Objects | Cookies | Errors ]

Publication Date: 10/1/2000