(Malcolm Sheridan) Razor is the new view engine that is available for ASP.NET MVC 3 Beta. Razor has directives that are the same as the WebForms view engine, so you can define namespaces at the top of the Razor file so you don’t have to use the fully qualified name when referencing objects.
Tag: Development
Mocking in .NET with Moq
(John Charles Olamendy) There are several mocking frameworks to be use in testing environments such as NMock, RhinoMocks, FakeItEasy and Moq to isolate units to be tested from the underlying dependencies.
ExpandoObject Explained In Tests (Except For One Mystery)
(K. Scott Allen) Update: Thanks to James and Samuel. I’ve wrongly assumed that every test runner in the world re-instantiates the test fixture before executing each test method – but some do and some don’t. In this case I was using NUnit and the “mystery” is solved by adding an NUnit [Setup] method
Caching ColdFusion Queries Inside Other ColdFusion Queries
(Ben Nadel) Over the weekend, I was playing around with some query caching for the blog when I found myself in a situation where I had two primary tables and a join table. Up until then, I had only had to deal with the caching of a single table, so persisting multiple tables in a relationship wasn’t
ASP.NET Page Life Cycle Events
(Suresh Paldia) When a page request is sent to the Web server, the page is run through a series of events during its creation and disposal.
Granular Request Validation in ASP.NET MVC 3
(Marcin Dobosz) A little while ago I wrote a blog post describing granular request validation that shipped in MVC 3 Beta. However, since then we have changed the API for this feature and that post is no longer valid. In this post I will present the new API which is usable in the recently-shipped MVC
Introduction to jQuery for ASP.NET Developers
(Bipin Joshi) If you are keeping yourself updated with the latest in the .NET sphere, you are probably aware that Microsoft has provided an inbuilt support for jQuery in Visual Studio 2010. Though it was possible to use jQuery with ASP.NET even before VS 2010, formally including jQuery as a part of
Subterranean IL: Callvirt and generic types
(Simon Cooper) In this post we finally get on to how basic generic methods are implemented in IL. First of all, we should briefly cover how a generic method is declared in IL.
Creating An ArgumentArray Collection In ColdFusion 9 Using TreeMap
(Ben Nadel) Yesterday, in my post about the contextual nature of the ordered ArgumentCollection method invocation approach, Elliott Sprehn mentioned that you could use a Java TreeMap object to overcome some of the functional “bugs” that I discovered.
Formatting Dates, Times and Numbers in ASP.NET
(Scott Mitchell) Formatting is the process of converting a variable from its native type into a string representation. Anytime you display a DateTime or numeric variables in an ASP.NET page, you are formatting that variable from its native type into some sort of string representation.
