Hope someone can help me. I'm afraid this is pretty new. I have an image inside the repeater, and I would like to change its IMAGEURL based on the parameter passed to it.
<asp:Repeater ID="Repeater" runat="server">
<HeaderTemplate>
<asp:Image ID="imgType" runat="server" />
</HeaderTemplate>
<ItemTemplate>
<%# Eval("DisplayName")%>
</ItemTemplate>
<SeparatorTemplate>
<hr />
</SeparatorTemplate>
</asp:Repeater>
In the code behind is the SWITCH statement, which changes the IMAGEURL depending on what is passed to it. Inevitably, however, the image identifier ("imgType") does not appear in the SWITCH statement (presumably because it is inside the REPEATER).
Any suggestions on the best way to implement them are welcome.
Sorry for this newbie question.
source
share