I have a div which I set the styling from overflow:auto to display:none depending on which buttons are pressed. Is there a way to retrieve which current styling it has and return that value as a string or something in C#?
I have a div which I set the styling from overflow:auto to display:none depending
Share
You can give the div element the runat=”server” tag, and access it in codebehind (it is a HtmlGenericControl.
You can get/set the Style property of the div control via “.Style.Value”.
CodeBehind example: