How do I run a WCF service inside an MVC website OR Do you make good use of Linq?

by Mikael Henriksson 30. October 2010 18:22
The goal of this post It took me some time to figure out how to have WCF services running inside an MVC website so I want to show you that but at the same time I want to show a smart way you can use Linq to remove some unnecessary code and at the same time make the code more readable and clear. ... [More]

Tags: , ,

MVC | WCF | LINQ

Keeping it short…

by Mikael Henriksson 12. April 2009 20:31
I am not sure this is liked by many (if any) but I hate having to write too much. Back to being lazy and I love to take shortcuts. One thing I really like doing is to shorten like follows: public ActionResult Index() { return View(new Repository().GetAll<News>()); } Personally I f... [More]

Tags:

MVC

Assign CSS class to ActionLink

by Mikael Henriksson 7. April 2009 11:28
I can think of various way to hack and slash the HtmlHelpers or jQuery to do this for me but there is a much easier approach though it took me a long time to find! I thought this would be accomplished without the @ before class but I suppose there is a reason for this… <%= Html.ActionLink("Print... [More]

Tags:

MVC

MVC – Books and source code!

by Mikael Henriksson 29. March 2009 17:42
MVC is not very hard to understand or grasp but the level of freedom it offers is pretty overwhelming! There are tons of great resources out there and stackoverflow offers some great answers even to the most difficult questions. What I need is some books in the matter. I just love reading books. I... [More]

Tags:

MVC

ActionLink not redirecting to action

by Mikael Henriksson 16. February 2009 23:47
Tonight I had a problem with the Html.ActionLink. It would from one Controller not redirect to another one which was really pissing me off at the time. I tried using the RouteDebug from Phil Haack and it showed correct routing so I started to poke around in the Html helpers and found this great thin... [More]

Tags:

MVC

The importance of name giving

by Mikael Henriksson 31. January 2009 14:49
Don’t remember who wrote it but I experienced it first hand tonight. I got it from Clean Code or some other great book I read. I can’t remember the exact frase but it goes something like this –“You give the name of your methods the same thought process as you would a child”. Something like that. For... [More]

Tags:

MVC

Html.DropDownList Not Working?

by Mikael Henriksson 31. January 2009 14:17
It’s actually pretty though not very easy to grasp and I couldn’t really find any information about my little problem but here is my explanation on how to get it working! :) All you need to do is: <%= Html.DropDownList("CustomerID") %> And this is why. I know it says that the DropDow... [More]

Tags:

MVC

Getting started with MVC

by Mikael Henriksson 28. January 2009 23:19
There has been ALOT of improvement in the new version of MVC. I have just gotten started but so far I love it. It is expressive and feels much more intuitive that regular asp.net. You can pretty much extend the existing functionally as much as you like and only the sky is the limit. Wait, stars is t... [More]

Tags:

MVC

About the author

Life architect specialized in programming

Month List

Widget Twitter not found.

Root element is missing.X