需要帮助使用dotnotnuke模态

时间:2014-09-26 09:36:09

标签: dotnetnuke

我试图通过将字符串查询参数传递给其他链接来点击链接来调用dnn模式,以便从链接到页面的信息中进行检索。这是我的href代码:

    <a href="javascript:dnnModal.show('<%#DotNetNuke.Common.Globals.NavigateURL("/ViewFleetTerminal","Id=" + Request.QueryString["Id"].ToString()) + "?popUp=true" %>',false,550,950,true)">Click Me!</a>

modal appear without any content.  and  if i point my mouse to the   link, this is the url that its  showing

    javascript:dnnModal.show(''?popUp=true,false,550,950,true)
Please is there anyone that can help. thank you

1 个答案:

答案 0 :(得分:1)

首先在html页面中检查实际呈现所需的网址,如果没有尝试'<%=而不是'<%#

此外,尝试通过提供tabId(页面ID)来调用NavigateURL方法,而不使用任何其他参数:

DotNetNuke.Common.Globals.NavigateURL(tabId)

这可以让你进入默认页面

最后,弹出JS调用:

var url= ...
dnnModal.show(url + '?popUp=true', /*showReturn*/false, 550, 950, true, '');