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  |  

Affordable ASP.NET Hosting Service
  Ads  
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  adding a aspx file
Previous Previous
 
Next Next
New Post 3/30/2008 3:31 PM
User is offline John Reid
12 posts
10th Ranked


adding a aspx file 

Hi -

Is there anyway to use an outside aspx file and still maintain user / portal settings?

Meaning...

I would like to use a file main.aspx and load a 'DNN' based ascx file that is able to access portal information. I have been able to create the files. If I load the ascx file as a module in dnn i have access to userid, etc. but if I login to dnn and then access the control through another aspx file I loose all my DNN info.

I tried to load it from an IFRAME in DNN but still no luck. I read that I need to add a portalId to the querystring of the new aspx file (aspx?portalid=1).

When I do I get a "Object reference not set to an instance of an object." error. -Entities.Portals.PortalSettings.GetPortalSettings

Thanks in advance

-John

 

 

 

 

 
New Post 8/11/2008 1:28 PM
User is offline Eric Garza
33 posts
10th Ranked


Re: adding a aspx file 

Have you tried to inherit from "DotNetNuke.Framework.CDefault"


Eric Garza
EGI Consulting
Dallas, TX
(972) 767-5930
Brian Dukes
EGI Consulting  - Logo
EGI Consulting is an e-business solutions provider.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  adding a aspx file
 


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.

 


Alki Homes - Seattle, WA
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
Swanzey Internet Group LLC
DotNetNuke design, development, e-Commerce, hosting, maintenance, and training. Exclusively DotNetNuke.
www.swanzey.com
Lucede Systems Group
Providing a full range of IT services for large and medium sized companies
www.lucede.com

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