asp.net datagrid image won't show after publish to internet

From: Rob Rogers (rob_at_natltc.com)
Date: 08/08/04


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.



Relevant Pages

  • ASP.NET Datagrid
    ... I have an aspx page with a datagrid in which I manually declare the columns ... I add an empty row in the datagrid that the user can ...
    (microsoft.public.dotnet.framework.aspnet)
  • code behind not seeing a label
    ... I have the following code in the aspx ... that is inside a datagrid, itemtemplate ... but the lblRightWrong says that it does not exists... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Datagrid and MVC Design
    ... I'm pulling my hair out on this one... ... Is it possible to have a Model-View-Controller architecture with a datagrid? ... Thanks, Jeff ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Datagrid and MVC Design
    ... Which of Model/View/Controller are you assuming a datagrid could be used ... > I'm pulling my hair out on this one... ... > Thanks, Jeff ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Solution while process is running
    ... long running task on the same aspx page. ... pressed a datagrid is loaded which can take 5-10 secs and then when an item ... > redirect the user to a new page and display an animated gif indicating ...
    (microsoft.public.dotnet.framework.aspnet)