You may follow below steps to do this.
1) Create a Folder in your Project. For Example with Name - "TestFolder".
2) Define a
key
in
appSettings
section of your
Web.config file.
<appSettings>
<add key="FileUploadFolder" value="TestFolder" />
</appSettings>
3) Access
value
of above
key
as below.
string folderFromConfig = ConfigurationManager.AppSettings["FileUploadFolder"].ToString();
FileUpload1.SaveAs(Server.MapPath(folderFromConfig) + FileUpload1.FileName);