stylesheetweb-user-controls

apply stylesheet to web user control


I want to apply styles to one webusercontrol

I have tried with

<link rel="Stylesheet" type="text/css" href="<%=ResolveUrl("~/Styles/ascxStyles.css") %>" />

but i'm not able to apply styles to user control.

Thanks in advance


Solution

  • Try Something Like href="~/Styles/StyleSheet.css" where ~/ is Root directory of the application and add runat="server"
    Or just Drag Your css On your control it will automatically create appropriate path