asp.net datagrid image won't show after publish to internet
From: Rob Rogers (rob_at_natltc.com)
Date: 08/08/04
- Next message: Dale: "Re: Is there a way to obtain a Session object other than the current one ?"
- Previous message: SFX: "Re: Is there a way to obtain a Session object other than the current one ?"
- Next in thread: Craig Deelsnyder: "Re: asp.net datagrid image won't show after publish to internet"
- Reply: Craig Deelsnyder: "Re: asp.net datagrid image won't show after publish to internet"
- Messages sorted by: [ date ] [ thread ]
Date: 7 Aug 2004 18:20:32 -0700
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.
- Next message: Dale: "Re: Is there a way to obtain a Session object other than the current one ?"
- Previous message: SFX: "Re: Is there a way to obtain a Session object other than the current one ?"
- Next in thread: Craig Deelsnyder: "Re: asp.net datagrid image won't show after publish to internet"
- Reply: Craig Deelsnyder: "Re: asp.net datagrid image won't show after publish to internet"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|