T
tshad
Is there some reason why the Hyperlink in a DataGrid will not show an image?
I have a datagrid with the following:
<asp:TemplateColumn visible="false" HeaderText="Skills">
<itemtemplate>
<asp:HyperLink id="SkillsTestDate"
imageURL="../images/checkmark.gif" visible="false" Text='<%#
Container.DataItem("SkillsTestDate")%>' NavigateUrl='<%#
"displayAppResumeEE2.aspx?JobID" & Container.DataItem("JobID") %>'
runat='server'/>
</itemtemplate>
</asp:TemplateColumn>
They work fine as:
<asp:TemplateColumn ItemStyle-VerticalAlign="top"
ItemStyle-HorizontalAlign="center" HeaderText="Skills<br>Taken"
ItemStyle-Width="45">
<itemtemplate>
<asp:Image id="SkillsImage" runat="server"
AlternateText="Image Text"
Visible="false"
width="16px"
Height="16px"
ImageUrl="../images/checkmark.gif"/>
</itemtemplate>
Same path, but for some reason the Hyperlink is not showing it, even though
MS says it is one of the properties.
Is there something you have to do to turn it on?
Thanks,
Tom
I have a datagrid with the following:
<asp:TemplateColumn visible="false" HeaderText="Skills">
<itemtemplate>
<asp:HyperLink id="SkillsTestDate"
imageURL="../images/checkmark.gif" visible="false" Text='<%#
Container.DataItem("SkillsTestDate")%>' NavigateUrl='<%#
"displayAppResumeEE2.aspx?JobID" & Container.DataItem("JobID") %>'
runat='server'/>
</itemtemplate>
</asp:TemplateColumn>
They work fine as:
<asp:TemplateColumn ItemStyle-VerticalAlign="top"
ItemStyle-HorizontalAlign="center" HeaderText="Skills<br>Taken"
ItemStyle-Width="45">
<itemtemplate>
<asp:Image id="SkillsImage" runat="server"
AlternateText="Image Text"
Visible="false"
width="16px"
Height="16px"
ImageUrl="../images/checkmark.gif"/>
</itemtemplate>
Same path, but for some reason the Hyperlink is not showing it, even though
MS says it is one of the properties.
Is there something you have to do to turn it on?
Thanks,
Tom