Missing Image for Container Visibility set to "None"

Last post 05-07-2006 9:32 PM by dupdup. 4 replies.

Sort Posts:

  • Missing Image for Container Visibility set to "None"

    04-23-2006, 1:21 PM
    • Member
      205 point Member
    • dupdup
    • Member since 02-26-2006, 11:03 AM
    • Posts 41

    I've built a custom container which seems to work fine except sometimes when I have the container set to "none" for visibility.  In the upper right hand corner it shows the missing image display.  Strangely not all the time.  Does anyone know what image might be missing or how I can get rid of this?

    Thanks,
    Dan

     

  • Re: Missing Image for Container Visibility set to "None"

    04-27-2006, 5:39 PM
    • Member
      205 point Member
    • dupdup
    • Member since 02-26-2006, 11:03 AM
    • Posts 41
    Lame to have to do this but the work around I'm using is to have a version of the container that doesn't contain:

    <dnn:VISIBILITY runat="server" id="dnnVISIBILITY" />

    Still can't figure out why this is just sometimes an issue. 
  • Re: Missing Image for Container Visibility set to "None"

    04-28-2006, 9:25 AM
    • Contributor
      7,345 point Contributor
    • nbc
    • Member since 06-29-2002, 12:06 AM
    • Perth, Western Australia
    • Posts 1,469

    This is a bug in the plus/minus "visibility" container object in DNN 3.2 and 4.0.  You can easily fix the problem without recompiling - just locate /admin/containers/visibility.ascx, and edit the "enableviewstate" attribute of the LinkButton element, like this:

    <%@ Control language="vb" CodeBehind="Visibility.ascx.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Containers.Visibility" %>
    <asp:LinkButton ID="cmdVisibility" Runat="server" CausesValidation="False" enableviewstate="True">
    <asp:Image ID="imgVisibility" Runat="server" enableviewstate="False"></asp:Image>
    </asp:LinkButton>

  • Re: Missing Image for Container Visibility set to "None"

    05-07-2006, 6:30 PM
    • Member
      205 point Member
    • dupdup
    • Member since 02-26-2006, 11:03 AM
    • Posts 41
    Thanks!  That seems to have fixed the problem.
  • Re: Missing Image for Container Visibility set to "None"

    05-07-2006, 9:32 PM
    • Member
      205 point Member
    • dupdup
    • Member since 02-26-2006, 11:03 AM
    • Posts 41

    hmmm....seems like I spoke too soon.  I just changed the enable view state to "true" on the tag.  Any other changes?

    <asp:LinkButton ID="cmdVisibility" Runat="server" CausesValidation="False" enableviewstate="True">

    I seem to still get that missing image thing... 

Page 1 of 1 (5 items)