I thought the answer to this would be easy to find but ...
I am using VS 2012 with C# and MVC 3.
Is there a straightforward tool/method to automatically generate the layout/navigation of a website?
Thanks
There is no magic that will do it for you.
There are plenty of tools that will generate nice Docs in various formats (including MSDN style) from static analysis of your code.
The one that I personally prefer is Sandcastle and you can read more about it here.
Hope it helps.
Related
I have been using MVC Editor & Display Templates for a while, but have come to realize that there seems to be very little official documentation on MVC Editor/Display Templates (Html.EditorFor() and Html.DisplayFor()). I found the basic MSDN documentation just showing the technical details (which on their own, are not very helpful), but I'm looking more for an official how-to, sort of like this example.
Are Editor/Display Templates more of an afterthought, and not really widely enough used to justify more in-depth official documentation?
Or, am I blind, and what I'm looking for exists, I just haven't found it yet?
Official documentation? Don't know any off hand, but I know there are a ton of examples. In particular, I like Phil Haack's discussion on model binding to lists. It includes an example for an editor template in a pretty complicated example. There's source code there, too.
Since he's co-authored every MVC Wrox book, I consider him a pretty definitive source:
http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx
Here's another blog post (non-official) in a similar vein:
http://blogs.msdn.com/b/stuartleeks/archive/2010/03/30/collections-and-asp-net-mvc-templated-helpers-displayfor-editorfor.aspx
best article that I have found for it is:
http://www.growingwiththeweb.com/2012/12/aspnet-mvc-display-and-editor-templates.html
It explains how to create DisplayFor and EditorFor templates really well.
ASP.NET MVC have a lot of materials on http://www.asp.net/mvc with different examples. EditorTemplates and DisplayTemplates is spetial folders for models (like here Quick Tips About ASP.NET MVC – Editor Templates) and you asking about html helpers, not templates.
Is there any documentation or example how to use MvcContrib.TestHelper.Ui and WatinDriver?
I haven't found any real documentation for it, but there are examples of its use in the source code for the CodeCampServer project.
You might also want to take a look at Chapter 20 "Full System Testing" in the book "ASP.Net MVC 2 in Action."
It's a really great look at a similar approach to what the WatinDriver is trying to accomplish.
Its discussion is also great in terms of designing your UI/HTML to be testable with tools like WatiN, and techniques to help make your browser testing less brittle.
EDIT: The WatiNDriver in use in the Code Camp Project source code isn't technically the one from MvcContrib.TestHelper, but I'd be surprised if it differs by more than 2 lines of code. Basically it looks like they borrowed the code directly from MvcContrib and added some of their own stuff on top of it.
The code in codecampserver is the test bed we used to create the MvcContrib source code. We have recently brought on a new committer to the MvcContrib project that is going to focus on this area of the codebase. Also, you are right on about the Mvc2 in Action book. We really followed that approach that is outlined in the book. Also, feel free to email the mvccontrib email list.. We do reply to that list, we do not follow the SO questions as much so keep that in mind.
Does anyone know asp.net mvc toolkit which has a ready tools for typical web developnet tasks(paging, comments, profiles, messaging, etc....) ?
Have you checked out http://mvccontrib.codeplex.com/
mvccontrib is a great project with lots of useful stuff in and well worth a look.
I'd also have a look at teleriks controls which includes some useful bits
http://demos.telerik.com/aspnet-mvc/
Also jquery and jquery ui come in very handy..
The asp.net membership providers can handle a lot of your user/profile stuff but may need extending to get the best out of it. As far as comments and messaging etc ?? there are a number of open source blogging engines and cms tools available.
http://orchard.codeplex.com/
http://blogengine.codeplex.com/
Would be good starting points
would like to use fckeditor or similar for building/editing webpages on the fly
but there are a few other old questions where there are issues
am looking for any recent experiences/alternatives ?
thanks
http://tinymce.moxiecode.com is not bad
I had a pretty easy time integrating fckeditor in my asp.net mvc app. The fact that mvc and regular webforms co-exist seamlessly made including the free fckupload utility a snap. I highly reccomend it.
Depends on the functionality you need. If it's a simple one like the one used here at StackOverflow, there's a Markdown Editor.
I am looking for reporting solution for ASP.NET MVC.
I need:
parameters support render to HTML
export to Excel
free / reasonably priced
Any suggestion?
There is an ongoing discussion about people using ActiveReports in ASP.NET MVC on stack overflow. It has excel export support.
Take a look at Stimulsoft Reports.Web for MVC - the tool exactly for MVC.
Telerik Reporting supports MVC and starts from $399 for a dev license ($599 with source and free upgrades for an year). They also provide a working project on how to use their tool in MVC. I hope this helps...
The easiest one we found to use with MVC was devexpress XtraReports. But it's not free and it's reasonably priced only for big projects.
Here's an example usage with MVC.
I was going to suggest the Microsoft Chart Controls, you can read about them here; however, I do not recall seeing anything regarding exporting to Excel. To get the data to export to Excel, I would simply let that be part of the request for the page. You may want to give these a look as the exporting to Excel may not need to occur with in the charting controls themselves.