简体   繁体   中英

ASP.NET Start Page loads always the Master Page

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM