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  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Opening a new Browser window with parameters
Previous Previous
 
Next Next
New Post 10/4/2006 2:31 AM
User is offline Asle K Andersen
3 posts
www.amc-technology.com
10th Ranked


Opening a new Browser window with parameters 

Hi there,

 

I have a small problem.

In one of my custom modules I am showing web-reports. These reports are dynamic in the way of expecting inputs from a user and displaying them into a web-report preview.
For nice printouts and management there is functionality for viewing reports as pdf’s in my module. This all works fine, and is not the problem.
I would really want to display this pdf in a new window (browser) that can be terminated easily and still have your report as it was in the module in the previous window.

I made a client side Input control that opens a new window using window.open(window.location.href + '<%# GetURLParameters()%> ') the GetURLParamters is a public method from CodeBehind that returns a string with the relevant paramters needed to generate a report.

This is where my problem starts.
My parameters are not forwarded to the new window and I am having problems of seeing why

Two questions,
1. Not being an expert on DotNetNuke I can’t see what I am doing wrong here, any suggestions?

2. Is there a better way?
 
New Post 10/5/2006 11:53 AM
User is offline ech01
629 posts
7th Ranked




Re: Opening a new Browser window with parameters 

This is a bit different than what your doing, but it may work. I'm using this to pop open a print-friendly window, that is another control containing a report that accept the parameter called CatId. I could then, in theory, turn those results into a PDF or excel file, etc...

Dim params As String = "&CatId=" & ViewCat

Response.Write("<script>window.open('" & NavigateURL(TabId, "CatDesc", "mid=" & ModuleId.ToString, params & "&SkinSrc=" & QueryStringEncode("[G]" & Skins.SkinInfo.RootSkin & "/" & glbHostSkinFolder & "/" & "No Skin"), "ContainerSrc=" & QueryStringEncode("[G]" & Skins.SkinInfo.RootContainer & "/" & glbHostSkinFolder & "/" & "No Container"), "dnnprintmode=true") & "','_blank')</script>")


www.blackhawksurfaces.com | www.nlsales.com | www.midwestfilmandvideo.com
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Opening a new Browser window with parameters
 


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.

 


DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de

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