2011-11-05 2 views
1

다음 짧은 태그가 있습니다. Visual Studio 2010을 통해 "브라우저에서이 페이지보기"를 시도하지만 시간 초과시 실패합니다. 누군가가 그 이유를 볼 수 있습니까?Aspx 페이지가 렌더링을 거부합니다

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="TB.Site.Add" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 

    <label for="Author">Author</label> 
<input type="text" id="Author" runat="server" /> 
<br /> 
<label for="Email">Email</label>&nbsp; 
<input type="text" id="Email" runat="server" /> 
<br /> 
<label for="TextArea1">Text</label> 
    <textarea id="TextArea1" cols="20" dir="ltr" name="S1" rows="2" runat="server"></textarea> 
<br /> 
    <br /> 

<label id="output" runat="server"></label> 

    </div> 
    </form> 
</body> 
</html> 

코드 뒤에 페이지가로드 좋은, 신선한 프로젝트에서

namespace TB.Site 
{ 
    public partial class Add : System.Web.UI.Page 
    { 
     protected void Page_Load(object sender, EventArgs e) 
     { 
     } 
    } 
} 
+0

디버깅을 위해 F5 키를 누르면 어떻게됩니까? – Lloyd

+1

마크 업은 코드 숨김과 실제로 상호 작용하지 않으므로이 페이지 자체에 문제가 없어야합니다. 당신은 Global.asax에서 뭐하고 있니? Visual Studio에서이 프로젝트의 속성을 어떻게 설정 했습니까? – jwiscarson

+0

@jwiscarson 같은 프로젝트에서 다른 aspx 페이지가 정상적으로 작동합니다. –

답변

0

여전히 무엇인지 알 수 없습니다. 다른 컴퓨터에서 동일한 솔루션을 열고 Add.aspx 에서 노란색 오류가보고 구성 요소별로 새 aspx 및 복사 된 componet을 열었습니다.

2

입니다. 따라서 이름이 바뀐 파일에 정의 된 추가 페이지가있는 다른 위치에 코드가 있다고 생각하게됩니다.

는 다른 파일에 오면 볼

public partial class Add 

에 대한 검색 작업을 수행합니다.

+0

는 코드 behinde 및 관련 aspx.designer에만 있습니다. –

관련 문제