-
ASP.NET MVC 3: Set up custom error pages to handle errors in “non-AJAX” requests and jQuery AJAX requests
In this blog post I will show how to set up custom error pages in ASP.NET MVC 3 applications to create user-friendly error messages instead of the (yellow) IIS default error pages for both “normal” (non-AJAX) requests and jQuery AJAX requests. In this showcase we will implement custom error pages to handle the HTTP error […]
-
ASP.NET MVC 3: Use re-mix library to add controller actions with mixins
Update 2012-01-15 I’ve written a follow-up post “ASP.NET MVC 3: Use re-mix library to add controller actions with mixins – Part 2” that shows how to integrate Fabian’s suggestions into the approach described in this post. Update 2012-01-10 Fabian Schmied (re-mix developer) published a blog post “re-mix: Encapsulate and share ASP.NET MVC controller actions” which […]
-
WCF Services over HTTPS: Programmatically accept self-signed or invalid SSL certificates
When using WCF Services over HTTPS with a self-signed or invalid SSL certificates WCF could throw get an exception of type SecurityNegotiationException that says: Could not establish trust relationship for the SSL/TLS secure channel with authority […]. To instruct WCF to accept all certificates use the following code before consuming any services: ServicePointManager.ServerCertificateValidationCallback += (sender, […]
-
ASP.NET MVC 3: Strongly typed Authorize Attribute with multiple users and roles
The ASP.NET MVC 3 framework provides an Authorize attribute that enables you to easily restrict the access to specific controllers and/or actions to predefined roles or users. In detail, the controller or the action is marked with the Authorize attribute that defines which roles or users are granted access to the content which looks as […]
-
Microsoft IIS 7: Enable Client Side Browser Caching for static Content in Web.config
To optimize the performance of a web site that is hosted in Microsoft’s Internet Information Server 7 it is reasonable to enable client side browser caching for static content (like for example image files, CSS files or JavaScript files) that probably won’t change in the near feature. You can find more information and best practices […]
-
Archos 101 internet tablet: Activate WLAN HTTP proxy settings in Android WebView
Since firmware version 2.1.8 the Archos 101 internet tablet supports HTTP proxy settings. The proxy settings can be configured under “Settings > Wireless & network > wifi proxy settings”. To enable the HTTP proxy settings in a WebView one has to call WebView.enablePlatformNotifications() in the Activity’s onCreate() method: public class YourActivity extends Activity { @Override […]