G
Guest
Can someone please tell me how I turn an ItemTemplate into a link? I don't
what to use a HyperlinkColumn as I have two lines in one column in the
datagrid coming from different sources!
I would like to turn the top time into a link!
EG:Have <%# Container.DataItem("header")%> as a link
<a href="default.aspx?id= <%# Container.DataItem("itemID")%>"><%#
Container.DataItem("header")%> </a>
This doesn't work but I wondered if there was a nother way to achieve the
same thing!
Thanks
---code---
<asp:TemplateColumn HeaderText="Event" HeaderStyle-Width="80%">
<ItemStyle HorizontalAlign="Left" Width="80%"></ItemStyle>
<ItemTemplate>
<b>
<%# Container.DataItem("header")%>
</b><br>
<%# Container.DataItem("EventLocation")%>
</ItemTemplate>
</asp:TemplateColumn>
what to use a HyperlinkColumn as I have two lines in one column in the
datagrid coming from different sources!
I would like to turn the top time into a link!
EG:Have <%# Container.DataItem("header")%> as a link
<a href="default.aspx?id= <%# Container.DataItem("itemID")%>"><%#
Container.DataItem("header")%> </a>
This doesn't work but I wondered if there was a nother way to achieve the
same thing!
Thanks
---code---
<asp:TemplateColumn HeaderText="Event" HeaderStyle-Width="80%">
<ItemStyle HorizontalAlign="Left" Width="80%"></ItemStyle>
<ItemTemplate>
<b>
<%# Container.DataItem("header")%>
</b><br>
<%# Container.DataItem("EventLocation")%>
</ItemTemplate>
</asp:TemplateColumn>