ASP.NET MVC - Html.ActionLink<T>(expression) - asp.net-mvc

Is something like Url.Action<TController>(...) or Html.ActionLink<TController>(...) in MvcContrib?
I see the FluentHtml stuff for forms, but I don't see the same concept applied to urls.
This post on CodePlex said it was added, but I don't see it in the source anywhere. Any help would be great.
Edit:
Also, I have read this, but would like to know specifically about MvcContrib.

I think that is part of the Futures: "ASP.NET MVC Futures Assembly"

jeef3 is correct, it is part of the ASP.NET MVC Futures. Mvccontrib has a dependency on it, so if you are using that library you already have it in your project.

Related

Does MVCContrib support MVC4?

Does MVCContrib support MVC4? I am trying to use it in my project. Can any one help me with an example?
Does MVCContrib support MVC4?
No.
The documentation mentions support for the script and style bundling of MVC4. Other discussions on codeplex indicate that T4MVC in MVC4 is working for people.
https://t4mvc.codeplex.com/documentation
Support for MVC's script and style bundles
Starting from MVC4, one can define "bundles" of scripts and
stylesheets which are automatically combined and minified. However,
magic strings are used to define the resource URLs. To eliminate them,
follow steps 1 to 3 below.
It appears full support for this is still being added. But the features that worked in MVC2 I know still worked in MVC3 because I used them in MVC3; but the documentation does not explicitly say it works with MVC3. I suspect that every feature in MVC4 that was part of MVC3 still works in MVC4.
Here is the reference discussion for bundling:
http://t4mvc.codeplex.com/discussions/399205
T4MVC is still better than relying on magic strings to reference controller actions and view names. In my opinion the next version of MVC just needs to include T4MVC in the base feature set. Until that happens I'll continue to use T4MVC.

ASP.NET MVC Control

Can anybody recommend a combobox/drop down list control that also has checkboxes on each row? It would also need to support multi select.
Thanks.
You can use the RadComboBox along with a little tweaking as provided for by this telerik community project, found here.
Should all work fine in MVC.
there one from SyncFusion.com with code for both Razor and aspx but I doubt you'll be able to find a free one.

How do you get the area of the current request when using MVC 2 RC?

I was using MVC 1.0 RTM, and the Haack solution for Areas
I just recently moved to MVC2 RC and I'm using single project areas with my controllers in separate assemblies. My problem is that in the MVC 1 solution I ALWAYS had "area" in my RouteData.Values collection, in MVC2 RC it doesn't exist. Do you know how to get this in MVC2 RC?
Thanks in advance!
This is kept in a DataToken for the route. Namely, route.DataTokens["area"]. Look at AreaHelpers.cs in the MVC source for details.
By the way, when you ask a question like this, you should show the code you're using which is not working. It makes it much easier to supply an answer. Right now, I don't know if you've already tried the method above, but are making an error with it, or if you haven't discovered this yet.

ASP.NET MVC Routing issues

Is there any tools or utilities to help in debugging ASP.NET MVC Routing issues?
Phil Haack, one of the creators of ASP.Net MVC, put together a route debugger. You can get it (with full source code) here.
Glimpse also has a plugin for route debugging.

Has anyone got NVelocity working with ASP.NET MVC Preview 5?

I'm guessing I need to implement an NVelocityViewEngine and NVelocityView - but before I do I wanted to check to see if anyone has already done this.
I can't see anything in the trunk for MVCContrib.
I've already seen the post below - I'm looking specifically for something which works with Preview 5:
Testing ScottGu: Alternate View Engines with ASP.NET MVC (NVelocity)
Otherwise I'll start writing one :)
There's an NVelocity implementation in MvcContrib. You need to reference the MvcContrib.Castle dll.
Personally I don't have a clue about NVelocity, but here is a link that might help you.

Resources