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...DNN Platform (o...DNN Platform (o...Getting Friendly URL from a web user control?Getting Friendly URL from a web user control?
Previous
 
Next
New Post
11/5/2009 1:10 PM
 

I've been writing some ASCX files to use within the DNN environment. I'm stuck trying to get the Friendly URL.

example: http://mysite.com/files/downloads.aspx

If I use the Request.Url or Request.RawURL I get the non friendly name.

I am able to get the friendly path using the DotNetNuke "UrlInfo.Url" function but it does not include the page name. For example:

http://mysite.com/files/    

So being able to get the friendly page name I could put this together.

Since this is an ASCX I do not have to reference and use all DNN library calls manually. If you can provide a short sample of which namespace is needed, it would be most helpful.

 
New Post
11/30/2009 12:57 AM
 

Hi,

    If you are developing a module, you have to inherit from DotNetNuke.Entities.Modules.PortalModuleBase

If you have an aspx page that you want to call from anywhere in dotnetnuke you can use following:

"http://"+DotNetNuke.Commam.Globasl.GetDomainName(Request)+"/"+<Your path from root directory>

for example your download.aspx is in Downloads/Videos/myvideo.avi directory the above can be used in following manner

"http://"+DotNetNuke.Commam.Globasl.GetDomainName(Request)+"/Videos/myvideo.avi"

 

Hope This helps

 


Find out code snippets, tutorials and How Tos' about dotnetnuke at lakhlaniprashant.blogspot.com Umlimited wedding planning tips, free wedding websites and more at http://www.FirstPhera.com an indian dotnetnuke portal dedicated to wedding planning!
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Getting Friendly URL from a web user control?Getting Friendly URL from a web user control?


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