-
DotNetNuke: ModuleController.UpdateTabModuleSetting() truncates setting names to 50 characters
This is the second blog post in my new DotNetNuke blog series and it’s about a problem I found out when saving TabModuleSettings in my custom module. Generally, saving ModuleSettings and TabModuleSettings in DotNetNuke is very straightforward: The DotNetNuke.Entities.Modules.ModuleController offers two simple update methods: UpdateModuleSetting(int ModuleId, string SettingName, string SettingValue) for updating ModuleSettings and UpdateTabModuleSetting(int […]
-
DotNetNuke: “Validation of viewstate MAC failed” exception when using the DNN 7 login form in multiple tabs
Update 2013-04-18 It turned out, that this is not a bug, but a security feature in DNN. I’ve written an new blog post that describes a possible workaround. This is the first blog post in my new DotNetNuke blog series. For a while now, I’m developing custom DotNetNuke modules and skins and I would like […]
-
ASP.NET MVC 4 RC & ASP.NET Web API: Implementing custom XmlMediaTypeFormatter that ignores XML namespaces
In this blog post I will show how to implement a custom XmlMediaTypeFormatter that extends the default ASP.NET Web API XmlMediaTypeFormatter in a way that it ignores XML namespaces when parsing xml messages. By default the ASP.NET Web API XmlMediaTypeFormatter is not able to parse XML requests that contain any XML namespace declarations. If you […]
-
ASP.NET MVC 4 RC & ASP.NET Web API: Return “HTTP Status code 4xx” instead of throwing InvalidOperationException “No MediaTypeFormatter is available to read an object of type ‘[…]’ from content with media type ‘[…]’”
By default ASP.NET Web API (included in ASP.NET MVC 4) throws the following exception when trying to process a request with an unsupported content-type (like “text/plain”): System.InvalidOperationException No MediaTypeFormatter is available to read an object of type ‘[…]’ from content with media type ‘[…]’. IMHO, sending a wrong content-type is a client-side error, and the […]
-
ASP.NET How-To: Create User Control library by compiling User Controls into .dll files
This blog post shows how to create a User Control library (a .dll file containing User Controls). To reuse the contained User Controls in other ASP.NET web projects you just need to add a reference to this .dll file and register a tag prefix (as shown at the end of this post). First, we need […]
-
ASP.NET MVC 3 & MongoDB: CRUD operations in NoSQL database using FluentMongo
This blog post shows how to use the open-source NoSQL database MongoDB in an ASP.NET MVC 3 web application. The showcase web application uses FluentMongo that adds LINQ-support for the 10gen MongoDB C# driver. Summarized the application demonstrates how to perform the basic CRUD (create, read, update and delete) database operations. Before running the example […]