CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 3/26/2005 9:32:56 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 23 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
adefwebserver
Asp.Net User
Finding the DNN root - Is this a bad way to go about it?3/26/2005 9:32:56 PM

0/0

I desire opinions on my thinking.

1. I want to place all the uploaded images for my module in one directory rather than in a images directory for each portal (I have code that creates a unique name when a image is uploaded). Does anyone see a major problem with that?

2. I am using this code to save the file:

<code>

Dim rootfolder As String = Common.ApplicationMapPath
UploadedFile.PostedFile.SaveAs(rootfolder & '\DesktopModules\DefMatchGame\images\' & Filename)

</code>

does anyone see a problem with doing it this way? What problems do you think I could run into? Right now of course it works on my machine but I plan to distribute this as a PA.

3. I realize that a person could change the name of the module from 'DefMatchGame' to something else but in my .dnn file in my PA don't I determine what the module name will be? Can this easily be overridden?

Thank you for your help because I am learning.


http://ADefwebserver.com
FuzzyGuru
Asp.Net User
Re: Finding the DNN root - Is this a bad way to go about it?3/27/2005 11:06:32 PM

0/0

try this instead:

<code>

UploadedFile.PostedFile.SaveAs(Server.MapPath(Me.TemplateSourceDirectory & "/images/") & Filename)

</code>

This will allow it to save no matter where it is actually installed to.


SQL Rule #1: Leave the SA password blank.
SQL Rule #2: Don't use WHERE clauses on DELETE statements.
adefwebserver
Asp.Net User
Re: Finding the DNN root - Is this a bad way to go about it?3/28/2005 12:55:39 AM

0/0

That works and was exactly what I was looking for. Big Smile [:D]
http://ADefwebserver.com
Richard Cox
Asp.Net User
Re: Finding the DNN root - Is this a bad way to go about it?3/28/2005 8:44:57 PM

0/0

This is how we do it to make sure we get the right directory every time, especially with relative directories and DNN 3 friendly urls - I'm not positive if this is still an issue with DNN 3.0.12 or whether or not it was a beta issue, but we do it as such:

<code snippet>

dim FileName as String

FileName = Me.ResolveUrl("images/myfile.txt")

dim PhysicalFileName as String = Server.MapPath(FileName)

If you wanted to go relative to root directory (ie: root images folder), you'd do a:

FileName = Me.ResolveUrl("~/images/myfile.txt")
dim PhysicalFileName as String = Server.MapPath(FileName)

</end code snippet>

--Richard

 


ByDesignWebSights
www.dotnetnuke-modules.com
Portal Store, Advanced Email Manager, SiteTrack, Support Desk and many other modules for your DNN platform.
sconard
Asp.Net User
Re: Finding the DNN root - Is this a bad way to go about it?7/29/2005 11:49:19 AM

0/0

I have a custom module and if I use the suggested method (in the code behind) from the last post in this thread I get an incorrect version of the relative path.

The dnn site name in this case is sport.

Dim strRelPath As String = Page.ResolveUrl("viewUpload.aspx")

What strRelPath holds is "/sport/viewUpload.aspx"

The correct relative path is "/sport/desktopmodules/mycompany.mymodule/viewUpload.aspx"
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Journey of Song: Public Life and Morality in Cameroon Authors: Clare A. Ignatowski, Pages: 223, Published: 2006

Web:
DNN Hosting just get an IP address, and away you go. ... this actual directory is now the virtual root of your website. ... Finding someone to host your site is easy. If you search for “DNN Hosting,” .... Nothing bad will happen otherwise, it is just that .... Preventing social hacking is one major way to secure your system. ...
DotNetNuke > Products > Development > Forge > Module - Reports ... Note: At this time there is no way of configuring this property in the skin. ... This means that if you use a horizontal menu, the root menu items only are .... Any comments on what browsers the no table version fails on and how bad it ... Whenever you go into edit of a page with a module you are seeing 2 menus. ...
Selecting a DotNetNuke Hosting Provider Revisited If you are having problems finding a hosting provider that meets your .... they do not support installation of DotNetNuke at the root of a domain, ... be sure that you know where you will go for DNN support should you need ... For example if you search on DotNetNuke for hosting you will find many bad comments about ...
Pipex - Myserverworld > DotNetNuke Forum, DNN Creative Magazine ... ps Not everything is bad with Pipex. My Linux reseller account works like ... The VPS account gave root access and allowed you to install software ... So a VPS or Dedicated server is one way to go but a little expensive ...
HOWTO: Manual install of DotNetNuke on GoDaddy.com - ASP.NET Forums If you go the PreInstall method, I have found two great tools that will allow you to access your DNN files. ... I finally had to get manuall install working because I see no way of ... I already have DNN installed on Godaddy but I want to put it in the root dir. ... This is incredibly dangerous and bad advice. ...
ARCast.net - DotNetNuke on the forefront of SaaS and modular ... So it's not just about saying, "good or bad, meets quality criteria," but it's working with the .... And in terms of getting in of time to market, it is the way to go, .... Reply to root. In reply to {0}. Start related discussion ...
John Mitchell's (mostly DotNetNuke) Blog - DotNetNuke Login is not ... Download this "Open Sesame" page and upload it to the root of your website, ... I am still finding my way around DNN and locked myself out. .... I was just changing the skins from fixed to full, also tried to go to grey ... I ran into this in the past w/ a bad skin removing login allowance, and blew it all away. ...
How to use Memtest Diagnostics > Tutorials, Bug Fixes, Subscriber ... How to Install DotNetNuke to Godaddy Root ... -Go to your favorite CD burning software, and choose to burn from an image file. ... but you should now be focusing on finding out if it is a windows problem ... So either my problem would be repeated if that is the cause, due to improper copying or the RAM is bad.) ...
Printing data from ListX > Forums > Bi4ce Open Source DotNetNuke ... I'm pretty sure it's just bad HTML in your LIST section causing the container to display ... or you can go through the process of creating inline STYLE tags to suffice. .... 1. you should be able to put the script in your DNN virtual root. ... Is there any way to force landscape mode when printing? ...
DotNetNuke E-Commerce - AspDotNetStorefront ML/DNN I get a server error in '/' every time I go to store admin. Other points to note :- DNN documentation for this module is very poor. ...




Search This Site:










article module for dnn 3.2

development/debug process

creating dnn3 modules with visual basic.net standard edition

customize module settings interface and parametries

authentication and roles from active directory?

inventory module

server side controls in custom modules develeopment

discussion module board problems

slideshow

how can i refresh a single module without reloading the page

can't add my custom modules

different controls of one module on different tabs?

how to copy a module with content ??

house of nuke modules updated

has anyone done a module like this?

new version of container manager available

free module (2.1.2) - college football bowl pool

photo gallery that allows users to comment?

moduleloadexception and settings

forum width??

create new custom module in c# for dnn 3

two definitions, no codebehind for 2nd?

problems with postbacks

customise weather module

new tttforum & tttgallery issues- version 109 application pack

module for displaying the news alerts in one line of text

catalook question - possible to use as a job board?

extractimage.exe

crystal reports release 2 and dotnetnuke... why does viewer give minmax persistance error?!

which dnn store - urgent help needed

  Privacy | Contact Us
All Times Are GMT