I have a custom module, when clicking the button, I want it pops up a window. The custom module and popup page are under DotNetNuke\DesktopModules\CustomModule. I want to display a dynamic report in the popup window. My question is if I should use aspx file or ascx file for the popup page. If using aspx file, how to get the correct path. I found the code form this forum and put it in my code, but I got 404 page can not be found error. Can anyone help?
Dim s As String = "openWindow('" & "localhost/dnn2" & "','http://" & Page.Request.Url.Host & Page.Request.Url.AbsolutePath.Replace("Default.aspx", "") & "')"
ButtonSearch.Attributes.Add("onClick", s)
function openWindow(portalAlias,whereAmIGoing){
newX = screen.availWidth-320;
newY = screen.availHeight;
arg1=whereAmIGoing + "testreport.aspx?alias="+portalAlias;
arg2="SendMail";
arg3=",width=300,height=75,left="+newX+",top="+newY+",toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=no,resizable=no,titlebar=no, location=yes";
window.open(arg1,arg2,arg3)
return false;
}
Thanks!