Currently, I am in the process of developing a unique custom control that consists of a combination of tables and buttons. Alongside this, there is an external CSS stylesheet that defines the styles for these specific elements.
This control falls under the type of CompositeControl, within the namespace of MyControls. The class definition can be found in a file labelled CompositeControl.cs, and the resulting dll file is named MyControls.dll
A stylesheet, known as styles.css, resides in the same folder as CompositeControl.cs
For every control, whether it be a Button, TableCell, etc., the CssClass
property has been specified.
Upon adding this control to my ASP.NET webpage and inspecting the HTML source while running locally, I have noticed that all the control tags correctly contain the class attribute. However, what seems to be missing is the <link>
tag, which is crucial for integrating an external stylesheet.
If someone could guide me on what steps I need to take to resolve this issue, I would greatly appreciate it. Thank you.