I am developing a custom control, which is a composition of tables and buttons. I also have an external CSS stylesheet that defines styles for these elements.
The CompositeControl control type is in the MyControls namespace, and the class definition is in the CompositeControl.cs class file and the dll created file is called MyControls.dll
The stylesheet is called styles.css and is located in the same folder as CompositeControl.cs
For each control (Button, TableCell, etc.) I specified the CssClass property.
When I add this control to my ASP.NET web page and check the HTML source when running on the local host, I see that all the control tags have the class attribute correctly set, but the source does not include the <link> , which is necessary to include external style sheet.
Can someone tell me what else I need to do to make this work? Thanks.
Saurabh manchanda
source share