Click here to Skip to main content
15,898,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to use java script menu using as Web User Control in Asp.ne 4.0 t. The problem is CSS styles are not applying throgh user control. but it works normal Pages. if i use as user control the CSS not Applied to the normal pages
Posted

1 solution

The problem is CSS styles are not applying throgh user control. but it works normal Pages
It looks like the URL for the stylesheet file is not referenced properly. During normal page, the reference path given finds the file and applies the css but through User-control, the path is not correctly formed and hence the file is not found at the given location not letting any CSS to apply.

Make sure that the CSS file path is correctly formed or apply the css in-file itself.

Have a look at this tip, it might help: Resolving Paths in a Multi-Folder WebSite[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900