LA.NET [EN]

September, 2012Archive

Sep 27

RhinoMocks: the Int32 vs Int64 conundrum

Posted in .NET, C#, RhinoMocks       Comments Off on RhinoMocks: the Int32 vs Int64 conundrum

In these last couple of days I’ve been busy trying to refactor some apps which are starting to show their age. It hasn’t been fun because unfortunately I didn’t have a high enough code coverage to perform the refactoring safely (oh well, life sucks sometime!). Even though it’s not the most pleasant thing to do […]

Read the rest of this entry »

Sep 24

Adding the SimpleMembership provider to an ASP.NET Web Forms app

Posted in .NET, ASP.NET, C#       Comments Off on Adding the SimpleMembership provider to an ASP.NET Web Forms app

If you’re a long time user of ASP.NET, you’re probably aware that the out of the box providers have some limitations. For instance, you couldn’t really use them with an SQL Compact database because they depended on stored procedure support for performing their actions. Besides that, clean up and maintenance in general depended on agents […]

Read the rest of this entry »

Sep 22

Razor 2: URL resolution improvements

Posted in ASP.NET, MVC       Comments Off on Razor 2: URL resolution improvements

Until now, it was common to see this pattern in our views: <script src="@Url.Content("~/scripts/myscript.js")"></script> The Content method is a helper method which is responsible for converting a relative path into an absolute path. From now on (where now is the MVC4 release date which happened sometime ago ), we can simplify our code so that […]

Read the rest of this entry »

Sep 20

The new Portable Class project

Posted in .NET       Comments Off on The new Portable Class project

One of the things that I needed to do in the past was to write a cross-platform project which had to be consumed from Silverlight and an ASP.NET MVC project. At the time, I was kind of lucky because you could reuse a Silverlight assembly in a .NET project provided that you only used some […]

Read the rest of this entry »

Sep 20

Oh, and yes, I’m still alive and kicking ! (thanks for asking ) In these last couple of months, I have really been really busy trying to finish up the Windows 8 and ASP.NET 4.5 Web Forms books (yes, at the same time ). I’m pleased to tell you that both books have entered their […]

Read the rest of this entry »