Clear view state

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nay

    Clear view state

    H
    I have a htmlcontrol table that set to visible=true or false alternatlly
    Is there any elegant/builtin way, to clear the view state of al the webcontrols that contained within that table

  • Kevin Spencer

    #2
    Re: Clear view state

    Create a recursive function that looks at a Control and clears its
    ViewState, and then calls itself for every Child Control of that Control.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Big things are made up
    of lots of little things.

    "Nay" <anonymous@disc ussions.microso ft.com> wrote in message
    news:EE7C4B6D-D758-44C2-920E-1FB65F932E51@mi crosoft.com...[color=blue]
    > Hi
    > I have a htmlcontrol table that set to visible=true or false alternatlly.
    > Is there any elegant/builtin way, to clear the view state of al the[/color]
    webcontrols that contained within that table?[color=blue]
    >[/color]


    Comment

    Working...