.NET/ASP.NET
VS2005 에서 aspx 파일 생성할때 XHTML 문법 체크때문에 ㅎㅎ
tornado
2006. 1. 16. 17:06
기본 설정을 어케 바꾸는지 몰라서..
aspx 파일 하나 생성하구... DOCTYPE 을 바꿔준다는 ㅎㅎㅎ
하여간에 비쥬얼 스튜디오에서 웹폼 생성하면 HTML 부분이 이렇게 아래처럼 된다...
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
여기서 DOCTYPE 이랑 HTML 부분을 4.0 스타일로 바꿔야
vs 에서 문법 체크를 안한다...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
...
이렇게 말이다.. 흐흐