Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC Razor designer

I am introducing ASP.NET MVC to a new team and one of the questions that comes up often is "Is there a designer view"

Even if it's not for layout is there an IN visual studio design view for ASP.NET MVC3 using the razor view engine.

like image 690
detroitpro Avatar asked Dec 29 '10 03:12

detroitpro


People also ask

Does ASP.NET MVC use Razor?

Razor has no ties to ASP.NET MVC because Razor is a general-purpose templating engine. You can use it anywhere to generate output like HTML. It's just that ASP.NET MVC has implemented a view engine that allows us to use Razor inside of an MVC application to produce HTML.

Can I use Razor pages with MVC?

You can add support for Pages to any ASP.NET Core MVC app by simply adding a Pages folder and adding Razor Pages files to this folder. Razor Pages use the folder structure as a convention for routing requests.

Is Razor pages better than MVC?

From the docs, "Razor Pages can make coding page-focused scenarios easier and more productive than using controllers and views." If your ASP.NET MVC app makes heavy use of views, you may want to consider migrating from actions and views to Razor Pages.

Is ASP Net razor?

Razor is based on ASP.NET, and designed for creating web applications. It has the power of traditional ASP.NET markup, but it is easier to use, and easier to learn.


1 Answers

No, there is no designer. It would likely be difficult for a designer to even know what is meant by Razor code in many cases.

It's really not so difficult to just use your web browser as a viewer. You can make changes to the HTML without having to recompile, just make the change, save, and refresh your browser.

EDIT (8/2/2013)

Since this answer was originally written, Microsoft has released Visual Studio 2012 which includes a feature called Page Inspector, which while not a true "designer" in the way that the question was written, it does give a much nicer semi-live preview mode. This has been improved in Visual Studio 2013 (which was RTM'd today, 10/17/13).

like image 78
Erik Funkenbusch Avatar answered Sep 19 '22 12:09

Erik Funkenbusch