HighTechTalks DotNet Forums  

How to map IDictionary to repeater?

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss How to map IDictionary to repeater? in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
SushiSean
 
Posts: n/a

Default How to map IDictionary to repeater? - 01-02-2008 , 03:31 PM






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?

<asp:Repeater runat=server id=Test1>
<ItemTemplate>
<%# Container.DataItem %>
</ItemTemplate>
</asp:Repeater>

Container.DataItem - doesn't work correct. How I can show key and value from
IDictionary.



Reply With Quote
  #2  
Old   
oroussea@gmail.com
 
Posts: n/a

Default Re: How to map IDictionary to repeater? - 01-03-2008 , 10:40 AM






On Jan 2, 4:31*pm, SushiSean <SushiS... (AT) discussions (DOT) microsoft.com>
wrote:
Quote:
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?

asp:Repeater runat=server id=Test1
ItemTemplate
* *<%# Container.DataItem %
/ItemTemplate
/asp:Repeater

Container.DataItem - doesn't work correct. How I can show key and value from
IDictionary.
http://forums.asp.net/p/1184360/2020322.aspx#2020322


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.