Contents tagged with Razor
-
DLL-s needed to run ASP.NET MVC 3 RC on Windows Azure
In this weekend I made one of my new apps run on Windows Azure. I am building this application using ASP.NET MVC 3 RC and Razor view engine. In this posting I will list DLL-s you need to have as local copies to get ASP.NET MVC 3 RC run on Windows Azure web role.
-
Draft: ASP.NET Web Pages with Razor Syntax
Microsoft published draft of e-book ASP.NET Web Pages with Razor Syntax - Beta 3. The book is targeted to everybody who want to build web sites with WebMatrix or Visual Studio using Razor engine. The book is simple and very informative and I already found some interesting topics from it. If you are starting with Razor take a look at this book.
-
ASP.NET MVC: Comparing same view on ASP.NET and Razor view engine
I ported views of my ASP.NET MVC application from ASP.NET to Razor. Although Razor is very new it is very promising view engine because of shorter and cleaner syntax. In this posting I will show you same view on ASP.NET and Razor view engine. I like Razor one more but what do you think?
-
ASP.NET MVC 3 Beta: Using WebMail helper to send e-mail
This far I have blogged about WebImage and Chart helpers. Now let’s see another new helper – WebMail – that you can easily use to send e-mails. WebMail is easy to configure and extremely easy to use. In this posting I will show you simple feedback form that uses WebMail to send feedback messages.
-
ASP.NET MVC 3 Beta: Razor views support comments now
Sometimes we need server-side comments in ASP.NET MVC views. New version of Razor view engine supports comments in views and in this posting I will show you example of view with multiline comments.
-
ASP.NET MVC 3 Beta: Strongly-typed views in Razor
One of the new features of Razor view engine is support for strongly-typed models. In this posting I will show you how to use strongly-typed model with Razor using simple view page.
-
ASP.NET MVC 3 Beta: View start files for Razor view engine
To follow better DRY (Don’t Repeat Yourself) principle Razor views support now defaults that are applied to all views in ASP.NET MVC web application. Default can be applied by special file so you have one place where everything common is defined. In this posting I will show you how defaults work and how to use them.