R
Rob Rogers
I have an ASP.NET datagrid that contains an image. The image can be
one of two images, either "INFO.GIF" or "NOINFO.GIF". The datagrid
looks fine when I test it from my local machine in visual studio.net,
but when I publish it to the net, the "INFO.GIF" image doesn't show
up.
I am pulling my hair out on this one. Here is the code from my aspx
file.
<asp:templateColumn>
<itemtemplate>
<asp:HyperLink id="HyperLink1" runat="server" Target="_blank"
NavigateUrl='<%# SetDisLink(DataBinder.Eval(Container, "DataItem.URL")
) %>'>
<img src='<%# iif((DataBinder.Eval(Container,"DataItem.URL") >"
"),"Info.gif","NoInfo.gif") %>' />
</asp:HyperLink>
</itemtemplate>
</asp:templateColumn>
The "SetDisLink" simply returns a url for the "Info" image to link to.
Can someone please help me.
one of two images, either "INFO.GIF" or "NOINFO.GIF". The datagrid
looks fine when I test it from my local machine in visual studio.net,
but when I publish it to the net, the "INFO.GIF" image doesn't show
up.
I am pulling my hair out on this one. Here is the code from my aspx
file.
<asp:templateColumn>
<itemtemplate>
<asp:HyperLink id="HyperLink1" runat="server" Target="_blank"
NavigateUrl='<%# SetDisLink(DataBinder.Eval(Container, "DataItem.URL")
) %>'>
<img src='<%# iif((DataBinder.Eval(Container,"DataItem.URL") >"
"),"Info.gif","NoInfo.gif") %>' />
</asp:HyperLink>
</itemtemplate>
</asp:templateColumn>
The "SetDisLink" simply returns a url for the "Info" image to link to.
Can someone please help me.