Wednesday, August 5, 2009

ASP.net - Specifying a directory when the Web Host won't specify the drive letter?

My Web Host won%26#039;t tell me what the full path is that I%26#039;m placing my files in.



I%26#039;m trying to open up a database using OleDbConnection. When I don%26#039;t specify the drive letter, it just assumes I mean c:\windows\system32\.



I%26#039;m trying to open %26quot;\user\access_db\Catalog.mdb%26quot;



How can I specify this in the Connection String?



ASP.net - Specifying a directory when the Web Host won%26#039;t specify the drive letter?





offer Webhosting i offer these packages



1gb space - -- - 5gb space - - - - 10 gb space --- Unlimited space



All of those come with Unlimietd Bandwidth Unlimited MySql Unlimited Ftp Accounts Unlimited Everything pretty much....



I also can install message boards for everyone that wants them....vBulleting---Invsion Power Board (IPB)----PHPBB ---- ANY OF THEM pretty much anything you want i can install



EMAIL ME AT bryan@bucswebhosting.com and i%26#039;ll reply back with pricing and all of that



ASP.net - Specifying a directory when the Web Host won%26#039;t specify the drive letter?



You should call Server.MapPath(%26quot;\%26quot;) to get the root directory path of your web site.

No comments:

Post a Comment