Powered by Blogger.

Archive for 2014

Add Styles Dynamicaly

This site is under Construction . please visit again....
Here is the way to add styles content dynamically i.e with in the code . Here control name is "Test"

test.Style.Add("display", "none");
or
test.Attributes.Add("style", "text-align: center;");
or


test.Attributes.Add("class", "centerIt");
or


test.Attributes["style"] = "text-align: center;";
or

test.Attributes["class"] = "centerIt";

- Copyright © .NET Developers Hub - Skyblue - Powered by Blogger - Designed by Johanes Djogan -