Top "Asp.net-mvc-4" questions

ASP.

Simple post to Web Api

I'm trying to get a post request to work with the web api. Following is my api controller. public class …

c# asp.net-mvc-4 asp.net-web-api http-post
Multiple radio button groups in MVC 4 Razor

I need to have multiple radio button groups in my form like this: I know it's simply done by specifying …

asp.net-mvc-4 razor radio-button radio-group
The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception

I'm working with EF5 in a MVC 4 aspnet website. Locally, everything works just fine, but when I publish it to …

asp.net asp.net-mvc entity-framework asp.net-mvc-4 entity-framework-5
Format datetime in asp.net mvc 4

How can I force the format of datetime in asp.net mvc 4 ? In display mode it shows as I want …

asp.net-mvc asp.net-mvc-4 datetime-format
Why is my CSS bundling not working with a bin deployed MVC4 app?

I have bin deployed an MVC4 application to my hosting provider, based on advice given here and one or two …

asp.net-mvc asp.net-mvc-4 asp.net-optimization
How to get query string parameter from MVC Razor markup?

I want to check the URL parameter in my Razor markup. For example, how do I do something like this: &…

c# asp.net asp.net-mvc razor asp.net-mvc-4
Register .NET Framework 4.5 in IIS 7.5

Pieces of the puzzle: Windows 7 .NET Framework 4.5 (installed) IIS 7(Version 7.5.7600.16385) Visual Studio (Ultimate 2013) MVC4 (multiple projects in the solution) The …

asp.net-mvc-4 visual-studio-2013 iis-7.5 windows-7-x64 asp.net-4.5
How do I add BundleConfig.cs to my project?

I have an ASP.Net MVC project and I want to implement bundling, but everything I can find on the …

asp.net-mvc asp.net-mvc-4 visual-studio-2013
All ASP.NET Web API controllers return 404

I'm trying to get an API Controller to work inside an ASP.NET MVC 4 web app. However, every request results …

asp.net-mvc asp.net-mvc-4 asp.net-web-api
EF 5 Enable-Migrations : No context type was found in the assembly

I have 4 projects : Toombu.Entities : all models are there Toombu.DataAccess: Mapping, Repository and ToombuContext Toombu.Logique : Logic of my …

c# entity-framework asp.net-mvc-4 entity-framework-migrations