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

相关文章
相关标签/搜索