Change ImageUrl of image outside Repeater with value from inside Repeater

7331

New Member
I have a Repeater with several items. With the use of a timer, the items are highlighted one after another with this code:\[code\]((HtmlControl)Repeater1.Controls[nextHighlight].Controls[1]).Attributes["class"] += "highlighted";\[/code\]One of the values that the items hold is an ImageUrl (collected from a database), which is to be used with an asp:Image outside the Repeater.How can i get the value - hopefully from the Timer_Tick function - in the Repeater item, so that i can change the ImageUrl? It doesn't matter how i should store the ImageUrl in the Repeater (Hiddenfield, maybe?) - whatever is the easiest to get from the Timer_Tick function.
 
Back
Top