Is Grid.MVC compatible with ASP.NET MVC 5? - asp.net-mvc

Before I start messing around with something that doesn't work:
Does Grid.MVC work with ASP.NET MVC 5?
On gridmvc.codeplex.com they just write MVC3/4, but I wonder if anybody tried it with MVC5? You tried it, but it didn't work?

Try this one: http://mvc-grid.azurewebsites.net
it is more up-to-date.
MVC 5:
Install-Package NonFactors.Grid.Mvc5
MVC 6:
Install-Package NonFactors.Grid.Mvc6

Yes it works in MVC5. The website does not indicate 3+ but that's what it is.
I have implimented Grid.Mvc in multiple MVC5 projects using EF6.
I love it, it's really easy to stand up and allow my users to query the data tables. I would suggest trying it out, but the documentation isn't great. Luckily the documentation they do have is enough to get started.
https://gridmvc.codeplex.com/documentation

Related

How do I upgrade to MVC 3 from MVC 2 and leave my code unchanged?

We are planning on upgrading our VS 2010 solution from MVC2 to MVC4 (without changing code because it's backwards-compatible).
I understand that we have to upgrade to MVC3 first. How can I upgrade our solution to MVC3 without changing our codebase?
The reason is that we want to start using MVC4 for new code and at the same time, we want the current code unmodified.
If anyone can help, I greatly appreciate it. All of the solutions that I've seen have some sort of tool to convert it automatically, but I'm scared that our current code-base would be modified and potentially break.
Any help is greatly appreciated in advance.
Our solution here is an extremely customized MVC2 solution. Our solution is the most customized MVC2 solution that I have encountered. Still, this link guides you through it and it works!
This worked for me:
ASP.NET MVC2 to MVC3
http://mvcdecoder.wordpress.com/2012/01/28/upgrade-application-from-asp-net-mvc2-to-mvc3/
ASP.NET MVC3 to MVC4 (directly from the ASP.NET whitepaper)
Do this manually:
http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253806

What is a MVC4 pluggable approach using Areas with external projects?

I have decided to use asp.net-MVC4, Doing some POC and stuck with manging bigger solution then I have found solution posted by #nilesh http://nileshhirapra.blogspot.sg/2012/02/aspnet-mvc-pluggable-application.html.
It is working fine for MVC3, but when try to implement same in MVC4, my area solution views will throw error saying no extension register for .cshtml. using ASP .net mvc 4 empty solution?

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.

MVC2 .NET - Paging

Ok I know there is some code out there for pagination in MVC but it seems to be for version 1, Scott mentioned that he was goint to implement to code into the release of version 2.
Was this code included? If so whats the best way to achieve pagination in MVC2?
Thanks
You can lool at mvc contrib. It contains grid control and pager.
I've decided to do this the old fashioned way and it works.
Yikes this is an old question and a poor answer by me. This was asked around the time of MVC beta. There is plenty of stuff on the web that will now advise on Pagination;
http://www.c-sharpcorner.com/uploadfile/amit12345/pagination-in-mvc-application/

Up to date tutorial of FormsAuthentication in Asp.Net MVC

I'm not getting to hang of the entire FormAuthentication thing. Is there an up-to-date tutorial somewhere? I found this one, but it a bit old and the syntax doesn't match recent Asp.Net MVC.
Look in the Account Controller that a new ASP.NET MVC project creates. It should already have everything you need to get started.

Resources