views:

217

answers:

0

I have a div that sometimes it is visible, sometimes not. So, I put the code on OnPreRender method, div.Visible = false. What happens is: When the property "EnableViewState" is true, the div never be invisible, only when "EnableViewState" is false. How I solve this problem?