Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using ASPX View Engine with MVC 5

Is it possible to use ASPX view engine with MVC 5?

We have a product using MVC 4 on ASPX view engine and we want to migrate to MVC 5, however, when I create a new project in VS 2013, select MVC and try to add a new View, I don't see any option to add a view using ASPX View Engine. Has Microsoft stopped with ASPX View Engine? Is there any way to still use ASPX?

like image 940
user2922302 Avatar asked Oct 31 '13 01:10

user2922302


People also ask

Is ASPX supported in MVC?

By default MVC supports ASPX (web forms) and Razor View Engine.

What is ASPX View engine in MVC?

ASPX View Engine ASPX or Web Form Engine is the default view engine for ASP.NET that is included with ASP.NET MVC from the beginning itself. The syntax used for writing a view with the ASPX View Engine is the same as the syntax used in the ASP.NET web forms.

Is ASPX view engine faster than Razor view engine?

Aspx Engine is faster compared to Razor Engine.

What is the difference between Razor and ASPX engine in MVC?

aspx. It's like the difference between JSP and Velocity in a Java MVC web app. Show activity on this post. By default, Razor Engine prevents XSS attacks(Cross-Site Scripting Attacks) means it encodes the script or html tags like <,> before rendering to view.


1 Answers

This is what a blog post regarding the release of VS2013 said: "The HTML editor used by Razor files (.cshtml and .vbhtml) as well as normal HTML files has been replaced with entirely new code. Web Forms (.aspx and .ascx) involve significantly more complexity and did not fit into a well-polished release for Visual Studio 2013, so they will be updated in an upcoming product release. " Source:http://blogs.msdn.com/b/webdev/archive/2013/06/27/html-editing-features-in-visual-studio-2013-preview.aspx

like image 173
hae Avatar answered Oct 12 '22 00:10

hae