Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesWhich folder should I use?Which folder should I use?
Previous
 
Next
New Post
12/20/2010 1:33 PM
 
Hi,
I am developing a module that includes a fileupload control. I want to use the standard upload control but I am mindful of  the issue that it wont work in an update panel. So to get around that I am using an IFrame in the View page of my module.
BUT I cant put the page that the IFrame calls in the DesktopModules/MyModule folder because I get a 404 in the IFrame (Although VS2010 in Win 7 doesn't have a problem with it IIS6 on 2003 does)
The code I am using is heavily based on the code n this page: http://geekswithblogs.net/rashid/arch... and it works very well indeed.
My question is where should I put the .aspx page that handles the upload in the site's folder structure?
 Is there a best pratice?
 Or am I going about this the wrong way?
Thanks in advance
 
New Post
12/20/2010 8:21 PM
 
the upload page should reside inside your module folder, but make sure you are passing portalId for not getting logged out.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/21/2010 2:40 AM
 
Thanks for your time Sebastian.
I may be being a bit daft here but I still dont get it. I put my .aspx page in my module folder and embed with the following code:



This gives me a "Page Not Found" error.
If I pass the portaliD to my .aspx do I have to process that in my .aspx Page Load event in some way to keep me logged in?
Is there some example code anywhere I can draw on?
Thanks again for your time . . . I am struggling at my limits here.
(I hope you are warmer in Germany than we are in the UK!)
Julian
 
New Post
12/21/2010 3:29 AM
 
Sorry - code doesn't show but it is a standard iframe tag in a div - nothing clever!
 
New Post
12/21/2010 4:18 PM
 
Hi again - there really is something screwy going on here and I desperately need help!

This is what i have done to try and pin down the issue . . .

I put an animated gif file (pw.gif) in the HTML folder in the DesktopModules folder

By browsing to mydomain.com/DesktopModules/HTML/pw.gif as expected I see the gif in the browser. If I put the same file in my module folder and enter the same path but with my module name I cannot see it.

If I make a new foder "test" and put the gif in that I can see the file OK by going to mydomain.com/DesktopModules/test/pw.gif
If I then rename test to be the same name as my module folder (after renaming my module of course) I can no longer see it! If I then rename to test once more I can see it.
From this I surmise that DNN is preventing access in someway to my module folder otherwise renaming should surely make no difference.
Can anyone suggest a way forward please???
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesWhich folder should I use?Which folder should I use?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out