How to Set Default Page Using Web.Config in Asp.net

Set Default Page Using Web.Config


if Login.aspx form set to default form use to web.config file . add below <system.webServer> Using Asp.Net.

Web.Config


<system.webServer>
              <httpErrors errorMode="Detailed" />
              <asp scriptErrorSentToBrowser="true"/>

    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
      <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"/>
    </handlers>

<defaultDocument enabled="true">
         <files>
            <add value="Login.aspx" />
         </files>
      </defaultDocument


       </system.webServer>






0 comments:

Post a Comment