What is the default startup page for ASP.net Projects

I have an ASP.net project I'm working on (1st time in ASP.net) however I'm curious to know how I would find which page is the page Visual Studio launches when I start debugging. Each time I search for this answer all the results simply tell you how to SET the startup page and not what the startup page actually IS. Basically - "What is the entry point"?

Currently my 'Start Action' when viewing the Project Properties is set to 'Current Page'. While I realize I can set a specific page or 'Start URL' I'm wondering what does 'Current Page' refer to? Basically I'm looking to know where I find the first line of code that is run when I begin debugging.

My initial thought was that it is looking for an aspx file named default.aspx but since my project has two of these files named default.aspx I guess it's pointing to the one residing with my other project files that sit at the root of my project.

Is this correct?

enter image description here


Solution 1:

I think there is two question you are asking.

Firstly, where is the entry point for your MVC application? Well your entry point for debugging MVC application would be Application_Start in Global.asax.cs file

protected void Application_Start()
{

}

Secondly, the Start Action is Visual Studio enables you to specify what happens when you run your application.

  • Current Page – Enables you to run the page currently open for editing in Visual Studio.

  • Specific Page – Enables you to set a particular page to run. You can set the page here or you can right-click a page in the Solution Explorer window and select the menu option Set As Start Page.

  • Start External Program – Enables you to run an external program.
  • Start URL – Enables you to request a URL. This option is typically used when building a Web Services application.
  • Don’t open a page – Enables you to do nothing.

You can change the start page to a particular page. For example, if you want to request the URL /Blog/Show/23 when your application starts, then you can enter this URL into the Specific Page input field.