SoFunction
Updated on 2025-04-05

C# backend modification sample code for css attribute modification of front-end DOM's css attribute

<div id = 'div1' runat="server">haha</div>
-----------
This is called in the background code

["display"]="inline";

Note that double quotes should be used in C#.

using ; This namespace must be introduced

Style["background-image"]
="url(images/bg_active.jpg)"; etc.