상세 컨텐츠

본문 제목

[Error] 간혹 runat="server" 한 엘리먼트를 cs 단에서 찾을수 없다.

ASP.NET

by happynuri 2010. 3. 2. 16:16

본문


간혹 runat="server" 한 엘리먼트를 cs 단에서 찾을수 없다.



 Error 11 'HanGulReport.popup' does not contain a definition for 'div01' and no extension method 'div01' accepting a first argument of type 'HanGulReport.popup' could be found (are you missing a using directive or an assembly reference?) C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\HanGulReport\HanGulReport\popup.aspx.cs 34 18 HanGulReport


뭐 이런식의 에러인데..

클라이언트 단에 엘리먼트를 추가 하고 runat="server" 했다.

popup.aspx

<div id="div01" runat="server">
</div>


이러면 cs에서

this.div01 << 이러면 잡혀야 하는데 안잡힌다는 말씀..

어이~ 코드 잘못 된거 없단 말야~ 도대체 왜 이래-_-+



결과 적으로 디자인 파일이 없어서 그런거니깐,

웹폼 추가 해서 새로 만들어서 쓰면 된다.

xxxxxx.aspx.designer.cs << 이런 파일 없어도 될줄 알았던 정신 머리 없는 1인

관련글 더보기

댓글 영역