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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Modules and Sub DirectoriesModules and Sub Directories
Previous
 
Next
New Post
8/29/2007 9:49 AM
 

Hi,

Ok here is the deal,  I have a client that wants the directory stucture of this for their specific clients

DesktopModules/Client_Custom/[ClientName]/[ModuleNam]/ViewModule.ascx

Where Client_Custom is always that, ClientName is the name of the client, ModuleName is the name of thier custom module.  There will be no controls in the Client_Custom, or the ClientName directories.

Some clients could have 3 or 4 or up to as many as they want to pay for.  The main reason for doing this is they are putting several clients per instance of dnn, and they want a way of organizing the modules.

Now onto the problem, I have noticed this in only 4.5.3 as this is the version i'm using and have not upgraded it yet.  If you put a module in a subdirectory it will do a page_load twice, and it will do a page_load for every postback you do and it thinks its not a postback.  I know this as i have tried to put the exact same module in the main Client_Custom directory, and all works just fine.  I would like to see if anyone else has ran into this problem before.  I have verified that the directory in the definition is correct, and just about every other thing i could think of.  I have no clue what could be causing this.  I could go the route of doing LoadContorl, but I was hoping to get it done by using controlkey's.

I hope ya'll folks understand what i'm trying to do, if not i'll try to explain it a bit more.

 

Thanks,
Andrew

 
New Post
8/31/2007 12:31 AM
 
Hi,

FWIW, I did a quick test with the following module:


<%@ Control Language="vb" AutoEventWireup="True" Inherits="DotNetNuke.Entities.Modules.PortalModuleBase" %>

<script Language="Vb" runat="server">

Public Sub Page_Load(Sender as Object, E as EventArgs) handles Me.Load
Response.Write("Page_Load<br />")
End Sub
</script>

Hi from test.ascx

--------------------
I put this module is /desktopmodules/test/test1/tes2 and created it manuall via the host menu.

I'm only seeing 1 page load on v4.5.5 but only recently upgraded and haven't noticed double page loads. Is it possible the control is being loaded more than once?

Also, I'm curious how you "secure" the module listings within the control panel? We've secured a few modules to specific groups by modifying a DNN core Stored procedure and I'm wondering how others may be doing this.

Thanks!



Shawn
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Modules and Sub DirectoriesModules and Sub Directories


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