[英]Parser Error in VS 2012
I am using following code in my master page. 我在母版页中使用以下代码。
<link rel='stylesheet' id='layer-styles-css'
href='css/layerslider.css?ver=3.4.1' type='text/css' media='all' />
It giving me error while debugging it in MS Visual Studio 2012. 它在MS Visual Studio 2012中调试时给我错误。
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: 'layer-styles-css' is not a valid identifier.
Please help me to fix it. 请帮助我修复它。
When a control is marked as runat="server"
, its id
and the id
of and all its contained elements need to follow the same naming convention as a C# property. 当控件标记为
runat="server"
,其id
和id
以及所有包含的元素都需要遵循与C#属性相同的命名约定。
I can't see your HTML structure, but if you change your dashes -
to underscores _
, it'll most likely fix your problem. 我看不到您的HTML结构,但是如果您将破折号
-
改为下划线_
,则很可能会解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.