this is my .ascx.cs
protected void LoadRssFeed(string url,int rssCounter)
{
try
{
GenericRssChannel c = GenericRssChannel.LoadChannel(url);
Repeater1.DataSource = c.Items;
Repeater1.DataBind();
and here the ascx
<div class="default" style="height:60px;" > <DIV ID="TICKER" STYLE="display:none; border-top:1px solid #CCCCCC; border-bottom:1px solid #CCCCCC; overflow:hidden; background-color:#FFFFFF; width:520px" onmouseover="TICKER_PAUSED=false" onmouseout="TICKER_PAUSED=false"> <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <span style='background-color:#7FB51A;'> <font color=#FFFFFF> <B><%# [color=#FF0000]......[/color]%></B></font> </span> <B></B> </ItemTemplate> </asp:Repeater> </DIV> </div>
Okay the part that I'm stuck with is ...... Theres a string in c.Items atributes called "title", what do i need to add to ...... to display that string there? I've just started programming so sry If I dont make sense.
but this is what I tried
DataBinder.Eval(Container.DataItem("title"))
I know that is wrong can some1 help me pls?
This post has been edited by |337BuNNy: 12 June 2009 - 12:47 AM

New Topic/Question
Reply




MultiQuote





|