//首先要獲取URL
private string UrlReferrer
{
set
{
ViewState[
}
get
{
if (ViewState[
{
return ViewState[
}
else
{
return
}
}
}
//然後在Page_Load裡面添加代碼
protected void Page_Load(object sender
{
if (!IsPostBack)
{
if (this
{
UrlReferrer = this
}
}
}
//最後在返回方法中
From:http://tw.wingwit.com/Article/program/ASP/201311/21777.html