i want to get full path in one variable which are writen in fileupload

Sorry, I'm not following your question too well but you can use Request.MapPath() method to obtains absolute path of given resource name.

string path=MapPath("~/file.txt");

Hello,

Are you using some kind of database program to fetch the information into a variable or is it like that you just want a single variable defined to store the path information?

I hope this will help you to solve your problem . .



string path = Server.MapPath("Uploaded")+"\\"+FileUpload1.FileName;
        FileUpload1.SaveAs(path);


--Karthik

commented: Thanks +1

string path = Server.MapPath("Uploaded")

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.