How to apply stylesheet in our user control

Oct 18 2011 7:48 AM

Hi,

I have created a user control and apply a style sheet on it as under:

<%@ Control Language="C#"%>
<link href="StyleSheet.css" rel="stylesheet" type="text/css"/>

<div class="a1">
<asp:CheckBox ID="CheckBox1" runat="server"/>
</div>

When i add this user control on my asp.net web forms style shet will not apply. I don't want to add reference of stylesheet file in my asp.net page

Pls. help me.

Thanks



Answers (2)