标签: asp.net-mvc-5 entity-framework-6
I've tried to make a folder whenever someone registered into my system but i don't know how to create it with the name of user name or user email any help?
答案 0 :(得分:0)
这应该是您正在寻找的
string directoryPath = Server.MapPath(string.Format("~/{0}/", txtFolderName.Text.Trim())); if (!Directory.Exists(directoryPath)) { Directory.CreateDirectory(directoryPath); }