Asp MVC section and partial views
I have a question regarding ASP sections and partial views.
Reuse MVC4 codebase / deploy MVC4 as standalone desktop application?
We have an MVC4 application that we would also need to distribute as a standalone (no network connectivity) desktop application. Rather than rebuild the HTML/JS front-end we would like to reuse that so in essence we’re distributing a self-hosted HTML-view-based .NET MVC application. What we roughly envision is: MVC4 .NET DLL + JS libraries + Self-hosted HTTP core + self/embedded browser view. For this standalone desktop app, we’re only concerned with Windows OS.
Querystring Advanced Search where there are about 20 search fields
I am creating an advanced search page where there are about 20 search fields for a user to filter their search. My question deals with the query string, Is it standard web development practice to have say 20 parameters in a querystring?
What’s the best practice for naming uploaded images?
Suppose I have a form in my web application where users can upload a profile picture.
Why should I use List over IEnumerable?
In my ASP.net MVC4 web application I use IEnumerables, trying to follow the mantra to program to the interface, not the implementation.
Why should I use List over IEnumerable?
In my ASP.net MVC4 web application I use IEnumerables, trying to follow the mantra to program to the interface, not the implementation.
In Unit Testing, why would I create a Repository twice?
The other day I was reading a little about Unit Testing and I saw some examples where people create a repository interface (i.e. IExampleRepository
) and then create the real repository (public class ExampleRepository : IExampleRepository
) and a repository to be used for unit testing (FakeExampleRepository : IExampleRepository
).
MVC : Does Code to save data in cache or session belongs in controller?
I’m a bit confused if saving the information to session code below, belongs in the controller action as shown below or should it be part of my Model?
Versioning an API
I’m starting a side project, the first stage will be a building a web application with MVC, in later stages we will be adding clients for mobile platforms. My thought was to create one API that all of the applications (web and mobile) go through to get/save data.
MVC URL formatting/design
In refactoring a lot of MVC code, I have run into an issue with my URL design. For example, let’s say we have a Venue
object