Question: how can i set the css (background)property from the server? Does not work at the moment:(

cs

```
 public string MyBackgroundColor { get; set; }

```

aspx

```
<style type="text/css">
    html
    {
        background-color: '<%=MyBackgroundColor %>';
    }
</style>

```

Answer: 
You can try

.aspx

```
<body id="body" runat="server">
...the body

```

.aspx.cs

```
body.Style["Background-Color"] = blue;//just example you can try using your method too

```
You can do it in this way 

```
Page.Header.Controls.Add(
    new LiteralControl(
        @"<style type='text/css'>
                html
                {
                    background-color: red;

                }
                </style>
            "
        )
);

```