|
-
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
-
May 3rd, 2005, 10:08 AM
#2
Addicted Member
Re: Servervariable in C#
Code:
string strVariable;
strVariable = HttpContext.Current.Request.ServerVariables["HTTP_REFERER"];
if (Page.IsPostBack ==false)
{
Session["LastPage"] = Request.ServerVariables["HTTP_REFERER"];
}
There are no stupid questions, but a whole bunch of dumb sayings !
Save time on database code, try DataLG !
-
May 5th, 2005, 06:36 AM
#3
Thread Starter
Hyperactive Member
Re: Servervariable in C#
thanks sixfeetsix , i have done it already
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
|