After countless hours researching (creating a few demo projects, viewing webinars etc..) I feel like MVC .net works great for 90% of the web application types out there, but not for mine.
Basically I have a dashboard application where I'm displaying large amounts of information in many different graphs / charts (all on the same screen). If I change the state of a control on the page, say a date range, I would like all of the graphs / charts to update accordingly.
Most of the examples of post backs in MVC involve a form submission (we don't have any forms on our dashboard) or it involves navigation from view to view (which I don't want to do either). The closest thing I can relate what we need to would be an MVVM framework but we won't be moving to Silverlight for a few months.
Am I thinking of MVC wrong, am I missing such a simple example that the major bloggers / tutorials don't cover it? Any thoughts?
SSI-like feature in ASP.NET / ASP.NET MVC
how do i load thousands of rows in my asp.net mvc project from database into slickgrid?
HTML.DropDownList values from multiple sources?
In many ways, MVC is closer to the "metal." Web Forms makes things like this "trivial" in terms of code, but usually only by making it extremely inefficient in terms of bandwidth..
Authentication for IIS content in virtual directory under ASP.NET MVC website
MVC takes a different approach; they force you to notice inefficient practices by doing it manually.
How can I get the client side date and currency formats?
jQuery and AJAX must be added to MVC for this kind of complexity..
When to use Singleton vs Transient vs Request using Ninject and MongoDB
It does really sound like you need a Silverlight solution..
ASP.NET MVC Registration With Captcha
ASP.NET MVC: Why is `ToMvcHtmlString` not public?
Some of the ASP.net controls don't work too well with MVC..
If it doesn't, dont use it by force.
Stick to WebForms if they fit your requirements better..
Each grid or chart would have a collection or member variable of some kind on the ViewModel.
Create a partial view for each grid, send the appropriate data to it as the ViewModel, and simply
foreachto build a
ulto display your tabular data as you see fit..
Don't use MVC just because it is the latest and greatest.. With that said, because ASP.NET MVC and Webforms use the same runtime environment, you could create an ASP.NET MVC project and use Webforms within that project when needed.
That way, you can get advantage of both worlds..
. I found a way to make MVC work very effectively over the weekend for my use case by incorporating AJAX postbacks to particular div tags.
Also incorporating McvContrib and Ninject into my code base eased quite a few pains that I foresaw.
I would highly recommend anyone looking into MVC to check out those two tools (even though Ninject isn't exclusively MVC).. Thanks again.. D^t.