Zum Hauptinhalt springen

Using Enums in ASP.NET MVC

If you use enumerations, you usually prefer not to see the internal value of the enum in the GUI, but a human readable (maybe localized) string. The following example shows how easy it is to accomplish that in ASP.NET MVC. We use the following example class that represents a change in a software: public class […]

Prevent „Method not Allowed“ Error when using ASP.NET Web API

The error happens when the REST methods (POST, PUT, DELETE, etc). are already registered by another application. The following entries in the  web.config helped me to overcome the issue: <system.webServer> <validation validateIntegratedModeConfiguration=“false“ /> <modules runAllManagedModulesForAllRequests=“true“> <remove name=“WebDAVModule“ /> </modules> <handlers> <remove name=“WebDAV“ /> <remove name=“ExtensionlessUrlHandler-ISAPI-4.0_32bit“ /> <remove name=“ExtensionlessUrlHandler-ISAPI-4.0_64bit“ /> <remove name=“ExtensionlessUrlHandler-Integrated-4.0″ /> <add name=“ExtensionlessUrlHandler-ISAPI-4.0_32bit“ path=“*.“ […]

Using the jQuery DatePicker in ASP.NET MVC

This post explains in detail the steps necessary to use the jQuery DatePicker with the ASP.NET MVC Framework to enter dates, instead of the standard Textbox. The description covers globalization, localization, as well as validation. Required NuGet Packages In addition to the standard libraries of jQuery and jQuery UI, the following libraries need to be […]