我如何从一个DotNetNuke的模块重定向到另一个? [英] How do I redirect from one DotNetNuke module to another?

查看:128
本文介绍了我如何从一个DotNetNuke的模块重定向到另一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的DotNetNuke。

I am new to dotnetnuke.

我开发了desktopmodules文件夹中三个模块。像

I developed three modules in desktopmodules folder. like

desktopmodules(folder)

     |
     --  EnterpriseSearch(folder)
           EnterpriseSearch.ascx

     |
     -- document search(folder)
           docsearch.ascx

     |
     --result(folder)
           result.ascx

结果页面是常见的企业单位搜索和文档搜索我想重定向到从EnterpriseSearch结果页面和参数docsearch。

result page is common to enterprice search and document search i want to redirect to result page from EnterpriseSearch and docsearch with parameter.

我试图把结果模块类型为 DotNetNuke.Common.Globals.NavigateURL

I tried with placing result module "type" as "view" and method of DotNetNuke.Common.Globals.NavigateURL

我试图把结果模块类型为编辑

I tried with placing result module "type" as "edit"

editurl()

但我不能够重定向它。

but i am not able to redirect it.

我不希望在一个文件夹到位三项方页面(按我的要求)

I dont want place theree pages in one folder (according to my requirements)

请给我解决我的问题。

推荐答案

由于控件都在不同的模块,你需要使用 Globals.NavigateURL 导航到特定页面,该模块上。如果result.ascx是同一模块的控制,你可以使用 EditUrl ,并通过在控制键,但只有在同一模块定义范围内的工作。

Because the controls are in different modules, you'll need to use Globals.NavigateURL to navigate to a specific page that the module is on. If the result.ascx was a control of the same module, you could use EditUrl and pass in the control key, but that only working within the same module definition.

在这种情况下,你应该使用 ModuleController.GetModulesByDefinition 来获得在门户网站的结果模块,然后导航到该页面的模块之一是。

In this case, you should probably use ModuleController.GetModulesByDefinition to get the Result modules on the portal, then navigate to the page that one of the modules is on.

这篇关于我如何从一个DotNetNuke的模块重定向到另一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆