Bader
Bader

Reputation: 3774

How to keep DIV shown after post back?

I have a div with Css Class : display:none and inside the DIV there is asp.net button, when the DIV is slided down and the button inside it is clicked , the DIV is in return slided up,

I want to keep this DIV shown after cilcking on the asp.net button . how ?

Upvotes: 0

Views: 1213

Answers (1)

StuartLC
StuartLC

Reputation: 107267

What you could do is make the div runat=server, and then conditionally set the display=none attribute only when !IsPostBack.

Upvotes: 1

Related Questions