Why Strongly Typed Html.ActionLink is Not in ASP.NET MVC 1?

Two reasons: They don't presently support ActionNameAttribute, so they're arguably broken There is no caching, so they're presently about 10 times slower than the framework methods Also, I agree with matt that we shouldn't pretend that URIs aren't strings.

Two reasons: They don't presently support ActionNameAttribute, so they're arguably broken. There is no caching, so they're presently about 10 times slower than the framework methods. Also, I agree with matt that we shouldn't pretend that URIs aren't strings.

I believe it got moved in to the futures package. I think the strongly typed methods are misleading anyway, remember, under the covers it is just a bunch of string maniplulations, after all URLs are just strings!

No... it's not, it's more useful than just mere syntactic purpose. If you need refactoring, you can just the refactoring tool to rename all the instances if you have strongly typed method. But if you are using string-based manipulation then I can only wish you good luck in hunting down every hardcoded string references.

– Graviton May 26 '09 at 15:12 1 I should have been more explicit, I meant under the hood of MVC (not my code! ) the strongly typed method converts that information into strings to generate the URL. See the source code on CodePlex, specifically ExpressionHelper.

GetRouteValuesFromExpression. – thatismatt May 26 '09 at 15:37 2 .. and if you read the post in Matt nze's answer you will see that the typed nature of the strongly typed ActionLink() skips over more internal MVC you you would prefer. MVC needs to do the 'mapping' of the action name to the method - the strongly typed ActionLink() stops MVC from doing that.

– cottsak May 27 '09 at 5:45.

The link that Matt gave has moved to "haacked.com/archive/2008/08/29/how-a-met.... And I agree that "the typed nature of the strongly typed ActionLink() skips over more internal MVC you you would prefer"; but I feel the solution to this isn't to give up on it and use magic strings, but instead to improve ActionLink() to generate a link which takes mappings into account!

Here is the answer: http://haacked.com/archive/2008/08/29/how-a-method-becomes-an-action.aspx.

Aug 15 '11 at 10:46Why Strongly Typed Html.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions