<script language="c#" runat="server"> void Page_Load(Object sender, EventArgs e) { NameValueCollection coll; Response.Write("Refering Page: " + coll.Get("HTTP_REFERER") + "<br>"); }But when I use this other code I get the my home page as the refering page. I don't understand why?
protected void Session_Start(Object sender, EventArgs e) { NameValueCollection coll = Request.ServerVariables; string cHttpReferer = coll.Get("HTTP_REFERER"); // Then I save the information to a database }I have all the namespaces in place and the code compiles without any problems.