C# StringHelper,字符串操作类

/// <summary>
/// 返回上一个页面的地址
/// </summary>
/// <returns>上一个页面的地址</returns>
public static string GetUrlReferrer()
{
string retVal = null;

try
{
retVal = HttpContext.Current.Request.UrlReferrer.ToString();
}
catch{}

if (retVal == null)
return "";

return retVal;
}

猜你喜欢

转载自www.cnblogs.com/-hao/p/9342955.html