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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Finding actual aspx page used when displaying module settings pageFinding actual aspx page used when displaying module settings page
Previous
 
Next
New Post
10/3/2009 2:10 PM
 

The url in the browser shows some tab id and some module id.......\default.aspx page. This is due to url redirecting to make the url seo friendly.

What's a good way to know which actual aspx page is being used before the url remapping occurs? I can VS and the source code version.

 

 
New Post
10/4/2009 5:26 AM
 

aspx page always is /default.aspx, which gets injected a number of nested aspx controls for skins, containers modules and UI elements. If you turn of URL rewriting, the url will look like www.mydomain.com?tabid=74 etc.

human friendly URL rewriting simply replaces tabid by tab name and path.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/4/2009 9:54 PM
 

It's a common misconception with DNN that the /default.aspx at the end of Urls maps to the /default.aspx page.  The actual fact is the /default.aspx is just there to make it look tidy and end in .aspx, and doesn't map to anything at all.  For example, you can refer to this forum thread as http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/118/threadid/333587/scope/posts/anything-you-really-want-to-say.aspx

And the above Url will work just fine.  The default.aspx at the end is just a placeholder.

With a few very isolated exceptions, all requests for DNN map back to the root /default.aspx page.

There simply is no 'module settings' aspx page or anything like that.

All DNN page content is displayed by the base /default.aspx page deciding on which controls (.ascx) files to load and display.  This is determined by several things: the presence / absense of a /ctl/control-name in the url, and a moduleid/xx in the url.  If no moduleid (or mid, the two are interchangeable) then the page loads all modules for the page.  With no /ctl/ in the url, the page loads all controls for the module.

In order to determine which actual code is run for a certain page, you need to look at the database, working backwards from the Module tab (specified by the mid, or, if absent, by all records in the TabModules table for the tabid), to the ModuleDefinitions, to the ModuleControls (specifed by the /ctl value, or, if absent, all controls for the module where the 'ControlKey' is null).  In the ModuleControls table you will find the ControlSrc value, which will tell you which usercontrol (.ascx) file is run for the individual Url.  

While all this obfuscation seems over complicated, it's precisely this structure that gives the DNN framework such flexibility.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Finding actual aspx page used when displaying module settings pageFinding actual aspx page used when displaying module settings page


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