Reputation: 357
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
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
Upvotes: 0
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
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