C# 在解决方案中获取所有主题
如何从我的web项目中的C# 在解决方案中获取所有主题,c#,asp.net,.net,C#,Asp.net,.net,如何从我的web项目中的App\u themes获取所有主题 我想获取所有内容并将其放入dropdownlist。类似的内容将为您提供主题名称列表: var path = Server.MaPPath("~/App_Themes"); var list = Directory.GetDirectories(path) .Select(folder => new DirectoryInfo(folder).Name)
App\u themes
获取所有主题
我想获取所有内容并将其放入dropdownlist。类似的内容将为您提供主题名称列表:
var path = Server.MaPPath("~/App_Themes");
var list = Directory.GetDirectories(path)
.Select(folder => new DirectoryInfo(folder).Name)
.ToList();