How to Set Default Page Using Web.Config in ASP.NET

  1. <system.webServer>  
  2.               <httpErrors errorMode="Detailed" />  
  3.               <asp scriptErrorSentToBrowser="true"/>  
  4.   
  5.     <validation validateIntegratedModeConfiguration="false"/>  
  6.     <handlers>  
  7.       <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>  
  8.     </handlers>  
  9.   
  10. <defaultDocument enabled="true">  
  11.          <files>  
  12.             <add value="Login.aspx" />  
  13.          </files>  
  14.       </defaultDocument>   
  15.   
  16.   
  17.        </system.webServer>  
Next Recommended Reading How To Set Default In ASP.NET MVC