Browse by Tags

All Tags » Razor (RSS)
ASP.NET Web Pages Beta 1 have support for Helpers, which are methods written in C# or Visual Basic, and returns IHtmlString. They can return HTML that is displayed on the page. If you choose to create helpers that way, you would need to have your HTML...
Something that is very common on websites is small images that is used to make links and other things look better. These small images is either added as a background image for the link, or as a separate image. When you load these images, they are requested...
Razor, the new ASP.NET MVC View Engine from Microsoft, makes it possible to write much cleaner views for our ASP.NET MVC sites. But since the code is so clean, why not use it in other places? Gustavo Machado have written a great blog post where he uses...
Posted by Vimpyboy | 8 comment(s)
Filed under: ,
When you are using ASP.NET with WebFormViewEngine and wants to call a method in a separate namespace, you can add a reference to the namespace in web.config to get a cleaner view. You can easily do it with: < add namespace ="Custom.Namespace"...
Posted by Vimpyboy | 134 comment(s)
What is ASP.NET MVC 3? In march, ASP.NET MVC 2 was released. It contains many new features such as data annotations, areas, validation and other things. These functions makes it easier to create larger projects where we easily can set annotations for...
Posted by Vimpyboy | 97 comment(s)
Filed under: , ,
More Posts