Retrieving File from Current Portal Skin Directory

We're trying to grab an .ascx from the current portal's/current skin directory so we can insert it into a custom module's view page.  Can anyone explain how to do this?
0
rambear
7/17/2006 6:46:27 PM
asp.net.dotnetnuke-modules 4559 articles. 0 followers. Follow

1 Replies
339 Views

Similar Articles

[PageSpeed] 49

Well, I figured out how to use

DotNetNuke.Common.GetPortalSettings.ActiveTab.SkinPath

to locate the current directory.

What we're trying to do is pull in an .ascx from the portal's skin directory that has a custom layout.  However, the controls on the differnt pages will always be the same (with the same ID) from portal to portal, it's just the layout will be different.

Is there a way to grab that file and stuff it into the 'View...ascx' file used by the custom module?  Maybe use a placeholder on the View page that we then cram the .ascx from the protal's skin directory into?

Can you stick a user control into another user control using the Page_Load event to determine where directory we're going to pull from?

Is there a better way to do this?

Thanks for any help.

 

0
rambear
7/20/2006 10:54:50 PM
Reply:

Similar Artilces:

superreview requested: [Bug 448834] Move ogg libraries from modules directory to new top level media directory : [Attachment 332003] Patch to build ogg files in media directory instead of modules
Chris Double <chris.double@double.co.nz> has asked Robert O'Callahan (:roc) (Mozilla Corporation) <roc@ocallahan.org> for superreview: Bug 448834: Move ogg libraries from modules directory to new top level media directory https://bugzilla.mozilla.org/show_bug.cgi?id=448834 Attachment 332003: Patch to build ogg files in media directory instead of modules https://bugzilla.mozilla.org/attachment.cgi?id=332003&action=edit ------- Additional Comments from Chris Double <chris.double@double.co.nz> This patch changes the build files for the directory rename. The ...

superreview granted: [Bug 448834] Move ogg libraries from modules directory to new top level media directory : [Attachment 332003] Patch to build ogg files in media directory instead of modules
Robert O'Callahan (:roc) (Mozilla Corporation) <roc@ocallahan.org> has granted Chris Double <chris.double@double.co.nz>'s request for superreview: Bug 448834: Move ogg libraries from modules directory to new top level media directory https://bugzilla.mozilla.org/show_bug.cgi?id=448834 Attachment 332003: Patch to build ogg files in media directory instead of modules https://bugzilla.mozilla.org/attachment.cgi?id=332003&action=edit ...

From an .ascx file how would I grab the current skins directory dynamically?
^ ^ ^ Any advice, I guess its in the code somewhere, am I just being lazy? I guess you've already looked, but just in case... In Defaut.aspx.vb lines 110 to 135 handle skin loading....

Error unzipping on the server (skins, modules, content files) -- can't create directory
I'm an experienced DNN-er but I've been trying a new host.  With this host, I get the following error whenever DNN tries to unzip a file into a new directory.  This is what the bottom of the install log looks like when installing the GalleryPA module: StartJob Creating files Info Created d:\domains\mydnnhost.com\wwwroot\bin\DotNetNuke.Modules.Gallery.dll Info Created d:\domains\mydnnhost.com\wwwroot\bin\DotNetNuke.Modules.Gallery.Popup.dll Info Created d:\domains\mydnnhost.com\wwwroot\bin\Gallery.Exif.dll Failure ExceptionSystem.IO.DirectoryNotFoundExcepti...

Linkclick problem : Child Portal Announcements module file links point to portal 0 !!
Hi, it seems there something wrong in the linkclick.aspx.vb file, but I don't know where and how to fix ... This Linkclick file is used for example in the Annoucements module, but the File link tries to find the file in portal 0 instead of the correct child portal. What should be corrected ? thanks for your help JohannWebsite - Weblog You can finde patches on http://www.webstone.com/ Thanks, it works !Website - Weblog Do I have to recompile DNN for this to take effect. I added the new files to my site, as well as the DNN bin file. Site broke... OR do I just ...

How to empty/delete temp files in 'Microst.net\framework...'-directory because of error: 'Access Denied in ..directory
Hello, Within C# I made a web-app that displays and makes available for editing some data within a MS Access 2000 database. Everything works, editing, moving to next page and, you've guest it, move to previous page. Now hopfully a discription of a familiar situation: 1) I have a web-application made within C#; 2) Within the virtual root of my web-app I placed my .mdb(Access 2000 database). As a result of this I don't have any rights to the access-database; 3) I start my application, and edit a record and save it. Withing ie I can see my saved data! 4) I stop my application; ...

Files Both In Directory and Not In Directory
I have run into a very strange situation/problem. If files are copied using the MS copy command in this manner: copy g:\testfile.txt "i:\archive\" the command reports the file is copied. Using any file browser in Windows or at the server the file does not show up in the directory listing. However, if you try to create a file by the same name in the destination directory it tells you it cannot because there is already a file with that name. I don't know what the quotes are for in the copy command. This was from a batch file that someone else set up. It does work as nor...

DotNetNuke file / directory security
Did anyone ever do a full security break down on DNN3 ? I mean the minimum needed security (read/write/change/full) per directory (or even per file)? I'm creating another setup project and need to set the minimum required security to get DNN to work (only when it's a local install of course). I have a rough idea what the minimum security would be, but maybe someone created a list that I could use? Geert Veenstra Sorry to 'bump' this question. It was probably too early for some (and not on the first page anymore).... ;-) .Geert Veenstra Geert, i'm not sure if this helps...

DotNetNuke Skins Module refresh
hi Guys, do you know if there is any Module for DotNetNuke that changes the skin on refresh or on every visit to website? thanks ...

Write to file and current directory.
Hi.  This is an easy one but I can't figure it out.  Sorry for the dumb question.I have a page where when the user updates a db field I update a text file on the server.  Currently I have the path to the file hard coded.  Each time I move this to another server (with possibly a different directory structure) I forget to change the pathing and of course this ends up biting me because the file can't be found.  How do I get the current directory?!Currently I do this:Dim strFile As String = "W:\Customer\Dev\ABCCust\ASP\ID\TRANS.id"The web's ASP runs...

DotNetNuke.Com Resource Directory module..
Does anyone know which articles module is used on the DotNetNuke.com Directory tab? http://www.dotnetnuke.com/Default.aspx?tabid=696 It's just what I need... thanks, jeffm Looks like Patrick Santry's (wwwcoder) Resource Directory available on Snowcovered or at one of his sites such as www.wwwcoder.com It's a great module as I have both the DNN 1.x and the DNN 2.x versions. You can see it in use at DNNFAQ also with some css alterations (with more to come) Tomhttp://www.dnnfaq.com http://www.websplus.net http://www.sdarchery.com Thanks a lot Tom. That's ...

How to Retrieve Current aspx File Name ?
Hi friends...  I have a MasterPage... I want to retrieve the file name of current page that runs inside masterpage . I mean, for example "current.aspx" . How can I do it ? cheers  You can simply use the following code: string currentPageName = System.IO.Path.GetFileName(Request.PhysicalPath)  Please let me know if you need further assistance.Cheers <%= Eyad.Salamin %><aspForums:DontForget>Don't forget to click on Mark as answer on the post that helped you.This credits that member, earns you a point and marks your thr...

File and Directory in VS2003.Net under VisualC++.
Hi There:I have created a project in VS2003.Net under VisualC++.-->Windows32 Application. I have to make an executable file that I will be able to run from different machine.The purpose of this file is to read some files that are in a particular directory. I will run the VSC++ .exe file from this folder. So I have to use some code to get the current directory(directory where the current exe file is existing). After getting the directory, I have to find all the files in this directory that has an extension of .config. How can I do this?Thanks in advance. ...

uploading files from directory vb.net
Hi,   I need to loop through a directory and save/upload the files to another place in the server. I use the code below to loop through the different files but I am not sure sure how to save each file.     dim folder as string=request.item("folder") Dim strFileSize As String = "" Dim di As New IO.DirectoryInfo(folder) Dim aryFi As IO.FileInfo() = di.GetFiles("*") Dim fi As IO.FileInfo For Each fi In aryFi strFileSize = (Math.Round(fi.Length / 1024)).ToString() Response.Write( f...

Web resources about - Retrieving File from Current Portal Skin Directory - asp.net.dotnetnuke-modules

Mother of three killed landlord after he tried to stop her retrieving her son's shirt
A mother of three has been found guilty of killing her landlord after he tried to stop her retrieving a red polo shirt her son needed for school ...

Retrieving bodies a 'horrifying' experience (01:43)
Anti-jump measures on the Story Bridge should be "fast tracked" and water police funding increased so CityCats don't have to pick up bodies. ...

Man drowns retrieving toy boat
A man has drowned after entering the Wimmera River at Horsham to retrieve a remote-controlled boat.

Bishop says there is no time limit on retrieving MH17 remains
THE Australian Federal Police have warned that it is too dangerous to approach the MH17 crash site in war-torn eastern Ukraine until security ...

Search underway for man swept away in Brisbane River while retrieving toy boat
A search is underway for a man swept away in the Brisbane River while retrieving a toy boat.

DPRK blames US for suspension of retrieving American soldiers' remains
DPRK blames US for suspension of retrieving American soldiers' remains People's Daily Online PYONGYANG, Oct. 13 The Democratic People's Republic ...

Father killed retrieving Christmas gifts from broken-down car
Richard Perrin, 57, was struck and killed by another driver early Saturday along Hwy 170 in Roanoke.

Yankee retrieving a big Canada
Yankee retrieving a big Canada

iPhone dev: Retrieving user phone numbers
... a secret to recovering user phone numbers that does not involve the … One of the most common questions I get these days has to do with retrieving ...

Girl stuck in Dover storm drain retrieving phone
A teenage girl gets stuck in a storm drain in Dover while trying to retrieve her mobile phone which had fallen into it.

Resources last updated: 2/3/2016 12:23:35 PM