Link to home
Create AccountLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

If Referrer is Null

What's the best way to handle this?

getting an error when the REFERRER is null

File.AppendAllText(Server.MapPath("~/urls.txt"), "Came From:" & Request.ServerVariables("HTTP_REFERER").ToString & " | Current:" & Request.Url.ToString + Environment.NewLine)
ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Larry Brister

ASKER

Thanks