T
Thom Little
I am trying to capture the identification of a user from ...
Form request
<a>Tag request
ASP redirection
JavaScript window.location call
I have a simple (I thought) application to capture the referrer. This
application throws an exception stating the "Object reference not an
instance of an object".
Can you tell me how to correct this (apparently obvious) condition?
public class count : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e )
{
string strWork = Request.UrlReferrer.ToString( );
if ( strWork == null )
{
strWork = "Location Undefined" ;
Response.Write( strWork );
}
else
{
strWork = strWork + "?Test=2005" ;
Response.Redirect( strWork );
}
}
Form request
<a>Tag request
ASP redirection
JavaScript window.location call
I have a simple (I thought) application to capture the referrer. This
application throws an exception stating the "Object reference not an
instance of an object".
Can you tell me how to correct this (apparently obvious) condition?
public class count : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e )
{
string strWork = Request.UrlReferrer.ToString( );
if ( strWork == null )
{
strWork = "Location Undefined" ;
Response.Write( strWork );
}
else
{
strWork = strWork + "?Test=2005" ;
Response.Redirect( strWork );
}
}