server.mappath(~/attach document)
ServerSavePath := Server.MapPath('/Upload');
'c:\InetPub\WWWRoot\MyWebApplication'
Server.MapPath('/Upload')
'c:\InetPub\WWWRoot\MyWebApplication\Upload'
'~/AttachDocument/ger.txt'
string fileLocation = @"~/AttachDocument/";
string fileName = string.Empty; if (txtImage.HasFile && var == true) { fileName = @"~\UsersFile\" + txtImage.FileName.ToString(); txtImage.SaveAs(Server.MapPath("~/UsersFile/") + txtImage.FileName.ToString()); }
<identity impersonate="true"/>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)