Question

I am migrating a web part from 2003 to 2007. The web part originally used styles from a modified core style sheet. I now want to create a separate stylesheet just for this web part.

I have tried to use

CssRegistration.Register("/wpresources/Portal.Megamenu/mystyles.css");

but this results in a HTTP 401 and I have to log in (NTLM is enabled). I also have some javascript files which get successfully loaded from that same location. If I enter the url directly I get the 401 for the CSS file but not for the JS files.

Can anyone point out what I'm doing wrong?

Thanks

Was it helpful?

Solution

Probably a long shot but have you checked the file permissions for mystyles.css in comparison to the JavaScript files?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top