<%@ Page Language="C#" %>
<script runat="server">
private void Page_Load(object sender, EventArgs e)
{
TheBody.Style[HtmlTextWriterStyle.BackgroundColor] = "lightblue";
}
</script>
<html>
<head><title>Background color</title></head>
<body id="TheBody" runat="server">
<h3>The background color of this page has been set programmatically.</h3>
</body>
</html>
|