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
Asked
Active
Viewed 54 times
2 Answers
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