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]
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]
5fb8d64b-ba9f-48b5-a670-4789bdb5125a|0|.0
Tags: MVC
MVC
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]
92bd8583-b017-4d1b-a593-558cb5c20030|0|.0
Tags: MVC
MVC
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]
e56d1bc4-3424-487e-bc5c-6400c5286bda|0|.0
Tags: MVC
MVC
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]
c26b11a8-ce4e-4812-98db-dee6b8f18699|0|.0
Tags: MVC
MVC
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]
382aef3a-2ec2-41fb-b859-155b94700bc0|0|.0
Tags: MVC
MVC
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]
8c75cfd7-424d-422a-9c08-320dd1abb2f8|0|.0
Tags: MVC
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]
45f4154a-1747-417b-b9fe-250659e3d7ff|0|.0
Tags: MVC
MVC