J
jobo
Hello,
I'm trying to assign a NavigateURL in my HyperLink in my DataList from
the backend. Here's my code:
<aspataList id="ItemsList"
OnItemDataBound="oidb"
BorderColor="black"
CellPadding="5"
CellSpacing="5"
RepeatDirection="Vertical"
RepeatLayout="Table"
RepeatColumns="3"
BorderStyle="none"
runat="server">
<HeaderStyle BackColor="#aaaadd">
</HeaderStyle>
<AlternatingItemStyle BackColor="Gainsboro">
</AlternatingItemStyle>
<HeaderTemplate>
List of items
</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink ID="hLink"
runat="server" Text='<%#
DataBinder.Eval(Container.DataItem, "FriendlyName") %>'
/>
</ItemTemplate>
</aspataList>
How do I access the NavigateURL from the backend? Should I assign the
NavigateURL on the OnItemDataBound? Thanks.
I'm trying to assign a NavigateURL in my HyperLink in my DataList from
the backend. Here's my code:
<aspataList id="ItemsList"
OnItemDataBound="oidb"
BorderColor="black"
CellPadding="5"
CellSpacing="5"
RepeatDirection="Vertical"
RepeatLayout="Table"
RepeatColumns="3"
BorderStyle="none"
runat="server">
<HeaderStyle BackColor="#aaaadd">
</HeaderStyle>
<AlternatingItemStyle BackColor="Gainsboro">
</AlternatingItemStyle>
<HeaderTemplate>
List of items
</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink ID="hLink"
runat="server" Text='<%#
DataBinder.Eval(Container.DataItem, "FriendlyName") %>'
/>
</ItemTemplate>
</aspataList>
How do I access the NavigateURL from the backend? Should I assign the
NavigateURL on the OnItemDataBound? Thanks.