Setting the Style for div via C#.NET

Had to look this up again so documenting for quick reference. It's rather simple to set a div style using the following steps:

Step 1; The div must have a unique id and be configured with runat="server":

<div id="myDivId" runat="server" class="head2">

Step 2; The code behind references the div as if it were any other Control on the page, using the Controls Style property to set a style attribute:

myDivId.Style["background-color"] = "#ffdd77";


Ich habe diese Phrase gelöscht cialis 20mg ohne rezept viagra [url=http//t7-isis.org]cialis bestellen forum[/url]
Credo che lei abbia sbagliato. Io propongo di discuterne. Scrivere a me in PM. [url=http://lacasadicavour.com/cialis-generico/ ]cialis senza ricetta [/url]Questa condizionalitГ  http://lacasadicavour.com/tag/cialis-online/ cialis 20 Siamo spiacenti, la questione ГЁ stata rimossa
Post a Comment

Links to this post:

Create a Link

<< Home


January 2007  |   March 2007  |   May 2007  |   February 2008  |   April 2008  |   July 2008  |   September 2008  |   October 2008  |   December 2008  |   January 2009  |   April 2009  |   May 2009  |   June 2009  |   December 2009  |  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]