Posted by : Unknown Sunday, 15 June 2014

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";

Leave a Reply

Subscribe to Posts | Subscribe to Comments

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