Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  how to open popup window in dnn?
Previous Previous
 
Next Next
New Post 8/28/2008 12:58 PM
User is offline Qi
10 posts
10th Ranked


how to open popup window in dnn? 

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!

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  how to open popup window in dnn?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com
Expressnet - DotNetNuke Hosting
Expressnet provide premium quality ASP.NET Web Hosting. We specialise in Windows based products including ASP.NET and Microsoft SQL Server. We offer fantastic value packages for DotNetNuke hosting. We also offer free asp.net web hosting
www.expressnet.com.au

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP