I'm getting "'HttpContext' does not exist in the class or namespace
'System.Web'" from trying to build (with Microsoft Development
Environment 2003, ver. 7.1.3088, .NET Framework 1.1, ver. 1.1.4322)
something like this:
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Text;
namespace A
{
public class A
{
public A()
{
// get value from HTTP header
NameValueCollection collection;
collection = System.Web.HttpContext.Current.Request.ServerVaria bles;
// etc., etc.
}
}
}
What I would like to do is to create a standalone class "A", which can
be used in an aspx file like so:
<%@ Import Namespace="A" %>
<script language="C#" runat="server">
void Page_Load( Object Sender, EventArgs e ) {
A a = new A();
// etc, etc.
}
I feel pretty stupid staring at a message like that, after having
checked
http://msdn.microsoft.com/library/de...classtopic.asp...