Frågan#1
Hej.
Jag har denna metod som binder en DropDownList.
[red]
private void bindExamples()
{
DirectoryInfo di = new DirectoryInfo(HttpContext.Current.Server.MapPath("../img/cards/exempel/"));
FileInfo[] fi = di.GetFiles();
this.examlpes.DataSource = fi;
this.examlpes.DataBind();
this.examlpes.DataTextField = "Key";
this.examlpes.DataValueField = "Value";
}
[/red]
men jag skulle bara vilja ha filnamnet på varje fil i DataTextField. hur gör jag det smidigast?
mv icaaq