Your using Visual Studio Development Server and you don't need to go to localhost:59852 for debugging. Just let the address be localhost:59852/Entrada.aspx.
But in your production server where your using IIS it will work.
ASP.NET Start Page loads always the Master Page
-
09-10-2022 - |
Вопрос
Independently of what i do my web app Start Page it's always the MasterPage. I have a Masterpage that most of the pages inherit, but i also have a "Entrada.aspx" to work as a landing page, that doesn't inherit the Masterpage. I want that "Entrada.aspx" is the default page but i can't set it be any means.
This is the header:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Entrada.aspx.cs" Inherits="webapp.Entrada" %>
I've set Entrada.aspx as the start page in the webapp Visual Web Properties -> Start Action
Specific Page: Entrada.aspx
I've also set it in web.config:
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<defaultDocument enabled="true">
<files>
<clear/>
<add value="Entrada.aspx"/>
</files>
</defaultDocument>
And doesn't work either.
I've already set it in Visual Web Context menu "Set as Start Page" and it doesn't work either.
Решение
Не связан с StackOverflow