'//You need to set the Runat attribute to server and give it an ID.
<body id="body" runat=server style="MARGIN-LEFT: 20px" vLink="#0000ff">
'//Declare the variable In the designer section
Protected body As System.Web.UI.HtmlControls.HtmlGenericControl
'//In your page load event ( or wherever ) use it
Response.Write(body.Attributes("style").ToString)
--
Terry Burns
http://TrainingOn.net
"Progman" <> wrote in message
news:l7lOf.29447$W%...
> <body id="body"
> style="background-image:url(../../Pictures/System/CountryMosaic.JPG)">
>
> how do i get/set body.style from asp.net?
>