Welcome aboard! We are happy you are here and wish you good net-raft!
<%@ Page Language="C#" AutoEventWireup="true"%>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
string subPath ="Mynewfolder";
bool exists = System.IO.Directory.Exists(Server.MapPath(subPath));
if(!exists)
System.IO.Directory.CreateDirectory(Server.MapPath(subPath));
Response.Write("folder successfully created!");
}
</script>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
</body>
</html>
The most helpful C# solutions
detect ie C#C# Click to see more ... 4.7K 853