The best manner is to databind the ddl to the list like this:
myDdl.DataSource = myList;
myDdl.DataTextField = "Description";
myDdl.DataValueField = "Key";
myDdl.DataBind();
You can do the same in the markup.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin http://usableasp.net
"Alhambra Eidos Kiquenet" <Al*******************@discussions.microsoft.com >
wrote in message news:D7**********************************@microsof t.com...
Hello,
I have a list of entities (with properties Key and Description).
Which is the best manner of load dropdownlist with this list ?
Thanks in advance
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net