Click to See Complete Forum and Search --> : http_referer question


thechasboi
02-08-2007, 04:21 PM
I need to check the referer. I do this but in one case ther is no referer. How in the world do I tell if the http_referer is empty or null or not?
HttpContext.Current.Request.ServerVariables("HTTP_REFERER")<>"" or something like this cause this is not working.
Thanks for the reply

thechasboi
02-08-2007, 04:44 PM
i used String.IsNullOrEmpty(HttpContext.Current.Request.ServerVariables("HTTP_REFERER")) which solved my issue. Thanks for looking at the post any way.