user3468621
user3468621

Reputation: 357

How to add new aspx page in asp.net 5 application

I have created a new ASP.Net 5 application as empty and tried to add the aspx page through add new item. but there is no options to add aspx page rather that we can have all other items like view, controller, class library.

Any suggestion is greatly appreciated.

Thanks in advance.

Upvotes: 4

Views: 15920

Answers (3)

Rachit Patel
Rachit Patel

Reputation: 862

ASP.NET 5 support both MVC and webfrom. We have choose web application templet with Web Form, MVC or API.

https://docs.asp.net/en/latest/tutorials/your-first-aspnet-application.html

enter image description here

Upvotes: 0

Mike Brind
Mike Brind

Reputation: 30045

Files ending in .aspx are part of the Web Forms framework. ASP.NET 5 does not support Web Forms at all, nor will it ever support Web Forms. If you want to create a Web Forms application using Visual Studio 2015, you should choose Web Forms from the ASP.NET 4.6 Templates instead.

Upvotes: 5

agua from mars
agua from mars

Reputation: 17424

ASP.Net 5 is like ASP.Net MVC, you cannot add .aspx page but .cshtml razor view into your Views folder.

Upvotes: 2

Related Questions