2014-09-26 42 views
0

我想通過將字符串查詢參數傳遞給其他鏈接中的鏈接來點擊鏈接來調用dnn模式以從鏈接到的頁面中獲取信息。這裏是我的HREF代碼:需要幫助使用dotnotnuke模式

<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 

回答

0

在HTML頁面中的所有檢查所需的URL真的呈現的第一,如果它不嘗試的'<%=代替'<%#

此外,嘗試調用NavigateURL方法通過沒有任何其他PARAMS這樣提供tabId(頁ID):

DotNetNuke.Common.Globals.NavigateURL(tabId) 

這dhould讓你的默認頁面

最後,彈出的JS調用:

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