Hello,
I want to create a folder under the root and failed. Please see the code.
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string[][] k = gets();
}
}
// other code
}
public string[][] gets()
{
String thisDir = HttpContext.Current.Server.MapPath(".");
String FileDownloadPath = Directory.CreateDirectory(thisDir).ToString() + "\\MyTable";
if (Directory.Exists(FileDownloadPath))
{
string[] files = Directory.GetFiles(FileDownloadPath);
foreach (string file in files)
File.Delete(file);
}
...
Thanks.
...
Go to the complete details ...