Wednesday, 22 February 2012

.Net Beginners : How to write CSS formatted text on the web page?

There are various properties of Asp:Label control to set CSS formatted.
Like
     BackColor
     BorderColor
     ForeColor
etc.....

you can set like following code :

<asp:Label ID="lblmsg" runat="server" ForeColor="Red" ></asp:Label>


There is also one property name CssClass .

You can set CSS class name to this property. This will apply formatting of CSS class to label.

1 comment:

  1. Can you please post article about how you have placed all 3 pages except Home page and how all those post display under specific page.

    ReplyDelete