在HTTP处理程序中
HttpRequest request = context.Request;
string lianJie=string.empty;
if(request.UrlReferrer!=null)
{
if(String.Compare(request.url.Host,request.UrlReferrer.Host,true,
CultureInfo.InvariantCulture)==0)
{
//录入正确的信息
lianJie = request.PhysicalPath;
}
}