Answer: With the help of Control'Style property,we can apply css at run-time,suppose i want to set Body background color,then we will write as:-
<body id="bdy" runat="server">
</body>
Then on code behind,
bdy.Style["Background-Color"] = LightYellow;
Asked In: Many Interviews |
Alert Moderator