Quantcast
Channel: typesafe » .Net
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

WebForms are a real PITA

Man, since about a week now, I’m forced at using ASP.Net WebForms. It’s been so long, that I almost forgot what a terrible PITA WebForms really is. I can only hope I get them to move to something else...

View Article



Image may be NSFW.
Clik here to view.

Mapping ASP.Net MVC Routes with Expressions

Update: I’ve added automatic constraints to this. When you’re working with ASP.Net MVC, routing is a very important thing to get just right. Unfortunately, the default routing options are pretty...

View Article

Image may be NSFW.
Clik here to view.

DataContractSerializer Throws ExecutionEngineException

Lost a few hours on this one today! Here’s what happened: At some point in our application I get hold of an object graph (an instance of a DataContract) which I need to serialize and store in the...

View Article

Image may be NSFW.
Clik here to view.

DataContractSerializer Throws ExecutionEngineException –...

In yeterday’s post, I mentioned that I would give the IDataContractSurrogate a try to solve this issue. And guess what? Problem solved! Mine anyway, I’m not sure if it will help in all cases, but...

View Article

Image may be NSFW.
Clik here to view.

Mapping ASP.Net MVC Routes With Expressions – Automatic Constraints

I’m just done updating my expression routing extensions class: First I’ve added support for extraction default values from Nullable parameters (oh boy, how could I miss that one!). Second, and more...

View Article


Image may be NSFW.
Clik here to view.

The ViewModel and the MasterPage

I just read Jimmy Bogard’s post on how we do MVC ViewModels and I must say, I digg the approach. Personally, I find it a shame that the ViewData dictionary is so damn prominent. In the comments there...

View Article

Image may be NSFW.
Clik here to view.

Solving the Trailing Slash Problem in ASP.Net MVC using a Custom...

There’s quite some annoyence about how ASP.Net routing handles trailing slashes. I agree, it would have been nice if one could enforce whether or not to use a trailing slash. I’ve always taken good...

View Article

Image may be NSFW.
Clik here to view.

The PreApplicationStartMethodAttribute cannot point to types in a different...

I was almost going crazy before I found out that when you use a PreApplicationStartMethodAttribute for bootstrapping your hosting environment you must point to a type that resides in the same assembly...

View Article


Image may be NSFW.
Clik here to view.

Dependency Injection at (Action)Method level, the easy way!

If, for whatever reason (I’m not going into this discussion), you’d like to inject your dependencies at the method level instead of using your constructor, like so: public ActionResult Post(Whatever...

View Article


Image may be NSFW.
Clik here to view.

Accessing the Mailgun API from .Net: mnailgun

I’m in the process of moving my email handling from google apps over to mailgun, mainly because I really need web hooks to support new customer dashboard functionality. Since my search for some proper...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images