asp.net & body-tag????

  • Thread starter Thread starter tommy
  • Start date Start date
T

tommy

hello,

i want to create the background-color of my aspx-site dynamically

could i use a existing class or control to realize that, or i have to
use "<% =variable %>"

thanks for answering


regards

Rasta
 
give the body a "runat=server" and declare it in the code. Then just use it
as normal.
 
hello,

thanks for answering..


but sorry, i didnt understand

can you give me a example please?


regards

Rasta

----------------------------------------
HangulHanjaFastConversion-Eigenschaft

True if Microsoft Word automatically converts a word with
only one suggestion during conversion between hangul
and hanja. Read/write Boolean.
 
in the HTML
<body runat=server id=MyBodyTag>

in the Code-Behing
protected System.Web.UI.HtmlControls.HtmlGenericControl MyBodyTag;

in the LOAD
MyBodyTag.Attributes.Add("style","background-color:red;");

or something similar
 
Hi,

it works great!!!!!!!


thank you very much!


and best regards

rasta


----------------------------------------
HangulHanjaFastConversion-Eigenschaft

True if Microsoft Word automatically converts a word with
only one suggestion during conversion between hangul
and hanja. Read/write Boolean.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top