Panel with vivible=false in source code / large source

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jens-Oliver Murer

    Panel with vivible=false in source code / large source

    Hello,

    I have a problem with an ASP.Net-application which generates very
    large source codes which have to be sent to the clients through 'thin'
    lines.
    The main problem seems to be a Datagrid which contains several hundred
    rows (I'd split them, but our customer wants it this way). I already
    disabled the ViewState and cut the source by nearly half.
    I use two datagrids on the page, which can be displayed alternately by
    setting the visible-parameter of the sourrounding panels of the grids.
    I was under the impression that a setting to visible=false would
    surpress a rendering of the invisible objects to the source code, as I
    had to recognize this isn't the case. Even when the big grid is set to
    invisible it is contained in the source-code even though not displayed
    to or needed by the user.
    Is there a option to surpress the output of invisible objects without
    destroying and recreating the objects or re-writing the whole page to
    split it up into two pages?

    best regards

    jens Murer
  • Mark Rae [MVP]

    #2
    Re: Panel with vivible=false in source code / large source

    "Jens-Oliver Murer" <jens.murer@gma il.comwrote in message
    news:76a5c56c-b684-4d26-939e-3ef75ad9710f@k1 3g2000hse.googl egroups.com...
    I was under the impression that a setting to visible=false would
    surpress a rendering of the invisible objects to the source code
    If you mean server-side, then that is correct. If you are setting visibility
    client-side using either the display or visibility style, then this is of
    course not the case...

    How are you setting the panel's visibility? Could anything in your code be
    resetting it?

    An easy way to check is to create a Page_PreRender in your page, set a
    breakpoint in it, and inspect the value of the Visible property there...


    --
    Mark Rae
    ASP.NET MVP


    Comment

    • Jens-Oliver Murer

      #3
      Re: Panel with vivible=false in source code / large source

      I'm using Panel.visible=f alse
      If this internally only triggers a CSS-style I'd understand that the
      panel remains in the source, but I thought it would be a server-side
      parameter which wouldn't lead to a output in the source.
      The visibility of the datagrids are changed on PageLoad when the
      decision is made, which of the panels has to be shown.

      Comment

      • Mark Rae [MVP]

        #4
        Re: Panel with vivible=false in source code / large source

        "Jens-Oliver Murer" <jens.murer@gma il.comwrote in message
        news:cf52dba6-37b8-42a4-b18a-a05c52b7d40d@m7 4g2000hsh.googl egroups.com...
        I'm using Panel.visible=f alse
        OK.
        The visibility of the datagrids are changed on PageLoad when the
        decision is made, which of the panels has to be shown.
        And what is the visibility when you break execution in Page_PreRender?


        --
        Mark Rae
        ASP.NET MVP


        Comment

        Working...