Server Control and CssStyle
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
How can I set my controls style in a server control(and also server control itself) to parent page cssstyle? Thanks Mazy
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - BabujiHi there, You can take a look at ASP.NET Server Controls and CSS Styles[^], to learn more about the issue. If you want to set the style of a server control based on its parent page, you'll first need to get a reference to the page instance via the Page property of the control, then you can access methods/properties of the page object.