开发者

Understanding how VS parses CSS in .ascx docs

I have a number of documents (in an MVC app) that exist solely to be called by:

<% Ht开发者_开发百科ml.RenderPartial("showLoginStatus"); %>

While editing the file in VS (08) the CSS class selectors used within this page all toss 'class not defined' warnings since the stylesheet isn't referenced in this file but in the 'parent'.

The page renders correctly when called - how do I clue VS into the fact that a definition exists?

thx


Looks like VS does not understand site relative paths, as described in this article.

So, to answer your question, either change the CSS URLs to be fully qualified, or live with the error...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜