L
Lasse Edsvik
Hello
I was wondering if you guys could show me how to fill a droplist with files
from a directory?
I got this but dont work
DirectoryInfo dir = new DirectoryInfo(Server.MapPath("img/"));
DropDown1.DataSource = dir.GetFiles(dir);
DropDown1.DataBind();
I was wondering if you guys could show me how to fill a droplist with files
from a directory?
I got this but dont work
DirectoryInfo dir = new DirectoryInfo(Server.MapPath("img/"));
DropDown1.DataSource = dir.GetFiles(dir);
DropDown1.DataBind();