0

Error

Error page loads for the first time randomly. When press the refresh button it automatically loads the selected startup screen in ASP.NET C# Web application. Refer image

Harsha W
  • 3,162
  • 5
  • 43
  • 77

2 Answers2

0

I found the answer. Added the default page to the web.config file

  <defaultDocument>
  <files>
            <clear />
            <add value="/Pages/Login/UserNamePwdLogin.aspx" />
            <add value="default.aspx" />
            <add value="index.aspx" />
            <add value="Default.asp" />
            <add value="index.htm" />
            <add value="index.html" />
            <add value="iisstart.htm" />
  </files>
</defaultDocument>
Harsha W
  • 3,162
  • 5
  • 43
  • 77
0

First you need to set Default page then you need to redirect to default page if credentials fail or access to any other page directly to url.

You may get many examples of how to set default page, one of them is following

How to set default page asp.net

Community
  • 1
  • 1
Meer
  • 656
  • 9
  • 18