Hi Fiends

I am using file Uploader in my form , & trying to save resumes on my server address, i have a folder (resme) which is on server side & now I want to save resumes on that folder
i am using server.mappath nut it's not working ,it's giving error
that the source not found "c\document and setting\_____"

So please help me to use server.mappath

given a file structure as follows...

DirectoryA
  -- SubDirA
  -- SubDirB
DirectoryB
  -- SubDirA
    --  SubDirA1
  -- SubDirB

If your page (lets say "Default.aspx") is in "DirectoryA/SubDirB" like so...

DirectoryA
  -- SubDirA
  -- SubDirB
    -- Default.aspx
DirectoryB
  -- SubDirA
    --  SubDirA1
  -- SubDirB

And you want to map the path to "DirectoryB/SubDirA/SubDirA1" then your code would be written from a relative perspective. E.g.

Server.MapPath("../../DirectoryB/SubDirA/SubDirA1/")

This string "../../DirectoryB/SubDirA/SubDirA1/" is broken down as follows.

"../" - From 'Default.aspx' go up one directory to "DirectoryA"
"../" - From 'DirectoryA' go up one directory to the root
"DirectoryB/" - From the root go into "DirectoryB"
"SubDirA/" - From 'DirectoryB' go into "SubDirA"
"SubDirA1/" - From 'SubDirA' go into 'SubDirA1'

And that pretty much is your server.MapPath explained. It simply requires a path relative to your current executing page. The error your receiving will probably be due to the fact your relative path does not exist.

try this:
Server.MapPath("./Resume");

mithun start a new thread...in order to proceed..!

hello,

i want know how to upload access db on ftp server and which folder, what is connectionstring, my front-end is asp.net 2008 and back-end access 2003.


pls replay soon......

use

server.mappath("path  to server folder") & fileuploadcontrol.filename
' after having attested that the file upload control contains a valid file.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.