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.0[DNN 4.5.3] Bridge between the Page(URL) and de the content (file.ascx)?[DNN 4.5.3] Bridge between the Page(URL) and de the content (file.ascx)?
Previous
 
Next
New Post
9/6/2007 9:58 AM
 

Hi

Can anyone tell me how the DNN make the bridge between the Page(URL) and de the content (file.ascx)?
for example:

the URL: ~/Admin/UserAccounts/tabid/42/ctl/User+Roles/UserId/2/Default.aspx
uses the file: securityroles.ascx

Thanks

 

 
New Post
9/6/2007 10:51 PM
 

It goes something like this:

Assuming mysite.com/Admin/UserAccounts/tabid/42/ctl/User+Roles/UserId/2/Default.aspx  

The URL is decoded by the http handler as follows
/Admin/UserAccounts is discarded 

the tabid value is stored as a query value  = 42
the ctl value is stored as a query value = User+Roles
the userid is stored as a query value = 2

Default.aspx is executed = which uses this info to retrieve database info for tabid = 42

This does the following:
  1. Determine Security Permissions
  2. choose the skin to be displayed

Assuming valid permissions and a valid skin 

1. The SKIN object is loaded
2. The panel areas of the skin are populated with modules.

In this case - tabid 42 is populated with the user Accounts Module.
the Ctl query value is then used to tell the Manage Roles component to be loaded and displayed instead of the default Manage Users Module
and finally the userid value is used to load the correct role info.

Westa

 

 

 
New Post
9/7/2007 7:11 AM
 

Hi again, and thanks for the help Westa ;)

i already know something that you told but i can't create a relashionship between a file and a page.
The cenario is this:

I've created a column in the gridUsers (file: \admin\user\users.ascx), this column should have the same behavior that the column to management the roles for the users.
The management of roles is done in the file admin/security/securityroles.ascx and this is indicated in the table dnn_ModuleControls, but if you take a look, you will see that the ModuleDefId is not the same as de UsersAccounts ...

this is what i'm trying to understand... because i was forced to create another mecanims to management access to some applications and the column that i have added i would like to pointed to my file securityPermission.ascx that is in the directorie admin/securiry/...

slimplifying...
what i'm trying to discover is how dnn relate files from diferents modules in the same module.

Thanks

 
New Post
9/10/2007 4:06 AM
 

can anyone help? 
i'm stuck in here for days.... :(

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0[DNN 4.5.3] Bridge between the Page(URL) and de the content (file.ascx)?[DNN 4.5.3] Bridge between the Page(URL) and de the content (file.ascx)?


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