Hyperlink within Repeater?

liunx

Guest
gurus,
the following code i change at runtime reading an xml file, but i don't know how to change the title, href, and target of the anchor tag. thanks in advance for any suggestions!
html:
<asp:Repeater id="Repeater1" runat="server">
<ItemTemplate>
<table>
<tr>
<td>
<a id="CompanyLink1" title="" href=http://www.webdeveloper.com/forum/archive/index.php/"" target="" style="color:blue"><%# Container.DataItem%></a>
</td>
</tr>
</table>
</ItemTemplate>
</asp:Repeater>

Code behind
Dim values As New ArrayList
values.Add("Company Link1")
values.Add("Company Link2")
values.Add("Company Link3")
Repeater1.DataSource = values
Repeater1.DataBind()The same way you are changing the text.In case anyone else has a problem similar to min...this guide was helpful.
<!-- m --><a class="postlink" href="http://www.w3schools.com/aspnet/aspnet_repeater.asp">http://www.w3schools.com/aspnet/aspnet_repeater.asp</a><!-- m -->
 
Top