转:DNN常用的几种页面跳转(EditUrl和Globals.NavigateURL)
2010-06-11 11:06
218 查看
下面我就把常用的几种页面间的跳转列出来,大家可以参考一下.
一、相同模块间
1)跳转到ascx页面,不带参数
Response.Redirect(EditUrl("","","ascx页面Key值"));
2)跳转到ascx页面,带参数
Response.Redirect(EditUrl("","","ascx页面Key值","BlogID1=Blog参数1","BlogID2=Blog参数2"));
3)任意ascx页面到模块首页,不带参数
Response.Redirect(Globals.NavigateURL(), true);
4)任意ascx页面到模块首页,带参数
int intTabID=this.TabId;
Response.Redirect(Globals.NavigateURL(intTabID,"","op=Back"));
二、不同模块间跳转
DotNetNuke.Entities.Modules.ModuleController objModules=new DotNetNuke.Entities.Modules.ModuleController();
int intTabID=objModules.GetModuleByDefinition(PortalSettings.PortalId,"DM Blog").TabID;
1)模块间跳转,不带参数
Response.Redirect(Globals.NavigateURL(intTabID));
2)模块间跳转,带参数
Response.Redirect(Globals.NavigateURL(intTabID,"","BlogID1=Blog参数1","BlogID2=Blog参数2"));
3)模块间跳转到另一模块的某个ascx页面,不带参数
Response.Redirect(Globals.NavigateURL(intTabID,"ascx页面Key值"));
4)模块间跳转到另一模块的某个ascx页面,不带参数
Response.Redirect(Globals.NavigateURL(intTabID,"ascx页面Key值","BlogID1=Blog参数1","BlogID2=Blog参数2"));
先写这么多吧,都是比较常用的,也是给自己做一个记录,以后查的时间就方便了。呵呵.
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/rogerbakerpeng/archive/2009/08/18/4459999.aspx
一、相同模块间
1)跳转到ascx页面,不带参数
Response.Redirect(EditUrl("","","ascx页面Key值"));
2)跳转到ascx页面,带参数
Response.Redirect(EditUrl("","","ascx页面Key值","BlogID1=Blog参数1","BlogID2=Blog参数2"));
3)任意ascx页面到模块首页,不带参数
Response.Redirect(Globals.NavigateURL(), true);
4)任意ascx页面到模块首页,带参数
int intTabID=this.TabId;
Response.Redirect(Globals.NavigateURL(intTabID,"","op=Back"));
二、不同模块间跳转
DotNetNuke.Entities.Modules.ModuleController objModules=new DotNetNuke.Entities.Modules.ModuleController();
int intTabID=objModules.GetModuleByDefinition(PortalSettings.PortalId,"DM Blog").TabID;
1)模块间跳转,不带参数
Response.Redirect(Globals.NavigateURL(intTabID));
2)模块间跳转,带参数
Response.Redirect(Globals.NavigateURL(intTabID,"","BlogID1=Blog参数1","BlogID2=Blog参数2"));
3)模块间跳转到另一模块的某个ascx页面,不带参数
Response.Redirect(Globals.NavigateURL(intTabID,"ascx页面Key值"));
4)模块间跳转到另一模块的某个ascx页面,不带参数
Response.Redirect(Globals.NavigateURL(intTabID,"ascx页面Key值","BlogID1=Blog参数1","BlogID2=Blog参数2"));
先写这么多吧,都是比较常用的,也是给自己做一个记录,以后查的时间就方便了。呵呵.
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/rogerbakerpeng/archive/2009/08/18/4459999.aspx
相关文章推荐
- DNN常用的几种页面跳转(EditUrl和Globals.NavigateURL)
- DNN常用的几种页面跳转(EditUrl和Globals.NavigateURL)
- DNN常用的几种页面跳转(EditUrl和Globals.NavigateURL)
- DNN常用的几种页面跳转(EditUrl和Globals.NavigateURL)
- DNN常用的几种页面跳转(EditUrl和Globals.NavigateURL)
- DNN常用的几种页面跳转(EditUrl和Globals.NavigateURL)
- DNN常用的几种页面跳转
- 几种常用的页面跳转URL的方法
- DNN常用的几种页面跳转
- js页面跳转常用的几种方式
- JS,解决页面跳转的几种常用方式
- JS跳转页面常用的几种方法
- 跳转页面的几种常用方式
- js页面跳转常用的几种方式_javascript技巧
- 微信小程序——wx.navigateTo中url无法跳转问题(app.json中配置的tabBar与wx.navigateTo中url引用相同页面导致)(2017/12)
- js控制跳转页面常用的几种方法
- asp.net 中 实现页面跳转的方法 常用的有几种
- js页面跳转常用的几种方式
- 微信小程序-页面跳转失败WAService.js:3 navigateTo:fail url not in app.json
- js页面跳转常用的几种方式