2012-07-14 4 views
0

에있는 경우 I 홈 페이지는 HTML 내 양식에 입력 할 수 있도록Default.aspx를 내 웹 설정 파일에서 주소 표시 줄

<location path="Default.aspx"> 
    <system.web> 
     <httpRuntime requestValidationMode="2.0" /> 
    </system.web> 
</location> 

이것은 설정이 결정합니다. 그러나 mywebsite.com/에서는 작동하지 않습니다. mywebsite.com.default.aspx에서 작동합니다.

그래서 나는 mywebsite.com/에 대한 작동 방법을 알아야하거나 주소 표시 줄에 default.aspx이 있는지 여부를 판단해야합니다. 웬일인지 주소 표시 줄에 없을 때에도 default.aspx라고 말하지 않는 서버 변수를 찾을 수 없습니다. 이 같은 IIS 7 세트의 기본 문서에 대한

답변

0

:

<configuration> 
    <system.webServer> 
     <defaultDocument enabled="true"> 
     <files> 
      <add value="Default.aspx" /> 
     </files> 
     </defaultDocument> 
    </system.webServer> 
</configuration> 
관련 문제