2013-01-19 8 views
0

다음 마스터 페이지에서 다음 코드를 사용하고 있습니다. MS 비주얼 스튜디오에서 디버깅을하면서 나에게 오류를 제공VS 2012의 파서 오류

<link rel='stylesheet' id='layer-styles-css' 
    href='css/layerslider.css?ver=3.4.1' type='text/css' media='all' /> 

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. 

내가 그것을 해결하기 위해 도와주세요.

제어가 runat="server"id으로 표시된
+0

id 속성을 추가하는 이유는 무엇입니까? – ChaosPandion

+0

'runat = "server"'링크가 포함 된 컨트롤이 있습니까? –

답변

1

과의 id 및 포함 된 모든 소자는 C# 1 속성과 동일한 명명 규칙을 따를 필요가있다.

HTML 구조가 표시되지 않지만 -을 밑줄 _으로 바꾸면 대개 문제를 해결할 수 있습니다.