I got some JS code changing the visibility of an object from display: none to display: block (jQuery show + hide).
When I now try to extract the visibility in C# by
webControl.Style["display"]
I get “none” instead of “block”. If I check it in browser waiting at the breakpoint the control is visible and firebug shows the correct “block”-value.
The .NET-breakpoint is triggered by pressing a button causing a postback.
What’s going on here? Is it a timing problem? I do a jQuery show on each reload.
I don’t believe style attributes are posted back to the server…