View Single Post
  #11 (permalink)  
Old February 15th, 2008, 04:27 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi hdpark,

Server.MapPath maps a virtual file or folder to a physical one. For example, if you have a folder called UserFiles at the root of your web site, and your web site is located at e:\web\myaccount\htdocs, then Server.MapPath should return e:\web\myaccount\htdocs\UserFiles
What do you get when you use Server.MapPath and output its return value on a label control? E.g.:

Label1.Text = Server.MapPath("UserFiles")

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.