|
-
May 3rd, 2005, 01:24 AM
#1
Thread Starter
Hyperactive Member
Servervariable in C#
Hello buddies,
I am tring to get a value from ServerVariable using following code.
but it is giving me error like this
System.Web.HttpRequest.ServerVariables' denotes a 'property' where a 'method' was expected
Mu code is as follows :
string strVariable;
strVariable = HttpContext.Current.Request.ServerVariables("HTTP_REFERER");
if (Page.IsPostBack ==false)
{
Session["LastPage"] = Request.ServerVariables("HTTP_REFERER");
}
can anybodt help me out
thanks & regards
pankaj
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|