Razor is a template language used by ASP.NET Web Pages and ASP.NET MVC (since version 3). It supports seamless transitions between HTML markup and C# or VB code. Transitions between markup and code are indicated by the "@" sign.

learn more… | top users | synonyms

0
votes
0answers
138 views

Parsing Razor-style Templates

I want to build a template engine (ITT not another template engine...) based on Razor. I've been at it for quite a long time not getting anywhere and quite frankly I'm at my limit. I've tried rolling ...
7
votes
6answers
4k views

Is Razor or XSLT better for my project? [closed]

I'm in the early stages in the design of a system that will essentially be split into two parts. One part is a service and the other is an interface with the service providing data through something ...
2
votes
2answers
3k views

In ASP.NET MVC/Razor, how to add initializer JavaScript to a “control”?

Actually, I already have at least 3 different solutions for the problem, I just don't like any of them for various reasons. In ASP.NET MVC/Razor, there are no controls anymore, in the sense as they ...
-1
votes
3answers
446 views

Host an MVC 3 with Razor syntax app on old server

I just started a new job, I have to create a web app for them and host it on their intranet on an Windows 2003 R2 server with SQL server 2008. As said in the question, I'll work on a MCV3 with Razor ...
0
votes
1answer
104 views

Primer on moving around in MVC

It was suggested on my Stack Overflow question that this might be better suited to this site, so I'm cross-posting it. I'm working on my first ground-up build of an MVC site. I have a collection of ...
0
votes
3answers
1k views

How to build MVC Views that work with polymorphic domain model design?

This is more of a "how would you do it" type of question. The application I'm working on is an ASP.NET MVC4 app using Razor syntax. I've got a nice domain model which has a few polymorphic classes, ...
0
votes
1answer
339 views

Get/Post Controller Logic Best Practice

In an ASP.NET MVC project (Razor), I have a Get request, which loads two properties on a model, dependent on the property passed into the action method. So if the parameter has a value, the Group ...
1
vote
1answer
3k views

Asp.Net MVC CMS or Shopping Cart or any other type of System [closed]

I have been learning Asp.Net MVC for a while now and have gone through numerous tutorial ranging from MVC Music Store to Code-First to Custom Membership to Data Annotations. In essence, I have a firm ...