How to map IDictionary to repeater?
am 02.01.2008 22:31:01 von SushiSean
I have repeater and IDictionary. In dictionary I add values like name and age.
IDictionary TestDictionary = new Hashtable();
SiteImages.Add(23, "John Smith");
SiteImages.Add(14, "Some Some1");
And when I map this to repeater it works, but how to get those values?
<%# Container.DataItem %>
Container.DataItem - doesn't work correct. How I can show key and value from
IDictionary.
Re: How to map IDictionary to repeater?
am 03.01.2008 17:40:17 von oroussea
On Jan 2, 4:31=A0pm, SushiSean
wrote:
> I have repeater and IDictionary. In dictionary I add values like name and =
age.
> IDictionary TestDictionary =3D new Hashtable();
> SiteImages.Add(23, "John Smith");
> SiteImages.Add(14, "Some Some1");
>
> And when I map this to repeater it works, but how to get those values?
>
>
>
> =A0 =A0<%# Container.DataItem %>
>
>
>
> Container.DataItem - doesn't work correct. How I can show key and value fr=
om
> IDictionary.
http://forums.asp.net/p/1184360/2020322.aspx#2020322