asp.net Server.Transfer

頁面跳轉傳參。html

 

若是不是通用的跳轉能夠經過,在原始頁面定義對象保存數據cookie

跳轉的目標頁面能夠:session

SourcePage page=(SourcePage)Context.Handler;
//獲取源頁面的對象。

 

通用的跳轉,可使用url傳參也可使用cookie傳參,當前其餘方式也是能夠的。好比Application,session等。asp.net

Server.Transfer("AA.aspx?UserId=" + userId + "&roleId=" + _roleId + "&CName=" + System.Web.HttpUtility.UrlEncode(channelName));

 

參考:ASP.NET——context.Response.Redirect重定向post

地址:https://blog.csdn.net/shang_0122/article/details/103211082url

 

標題:asp.net中的參數傳遞:Context.Handler 的用法spa

標題:ASP.NET中Server.Transfer用法.net

相關文章
相關標籤/搜索