I have a hash table declared in a class. how do i bind it to a
dropdownlist in a webform?The same way you bind any other source to a dropdownlist. Use "Key" and
"Value" as your dataTest/ValueField
ddl.DataSource = urHashtable;
ddl.DataTextField = "Value";
ddl.DataValueField = "Key";
ddl.DataBind();
MY ASP.Net tutorials
http://www.openmymind.net/
<shamila.thakur@.gmail.com> wrote in message
news:1129568158.495358.66850@.g14g2000cwa.googlegroups.com...
>I have a hash table declared in a class. how do i bind it to a
> dropdownlist in a webform?
>
Friday, March 16, 2012
Populating ddl using hashtables
Labels:
adropdownlist,
asp,
bind,
class,
ddl,
declared,
hash,
hashtables,
net,
populating,
table
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment