Rick Strahl's Web Log

Wind, waves, code and everything in between...
ASP.NET • C# • HTML5 • JavaScript • AngularJs
Contact   •   Articles   •   Products   •   Support   •   Search
Ad-free experience sponsored by:
ASPOSE - the market leader of .NET and Java APIs for file formats – natively work with DOCX, XLSX, PPT, PDF, images and more

Weblog Posts in April 2012

ASP.NET (236) .NET (119) JavaScript (71) jQuery (61) ASP.NET (60) Windows (50) AJAX (47) Visual Studio (44) CSharp (43) IIS (42) HTML (35) Localization (31) LINQ (30) Personal (30) WCF (28) MVC (25) HTML5 (23) FoxPro (21) WPF (21) Web Services (19) Security (18) CSS (18) ASP.NET Core (17) Web Api (16) COM (15) IIS7 (14) C# (13) ADO.NET (13) Angular (12) Vista (12) XML (10) HTTP (10) Microsoft AJAX (8) Sql Server (8) Web Connection (7) West Wind Ajax Toolkit (7) Entity Framework (6) Html Help Builder (5) C++ (5) ASPNET5 (5) Visual Studio (5) OWIN (5) SignalR (5) Silverlight (5) Live Writer (5) Source Control (4) Web Browser Control (4) Westwind.Globalization (4) Cordova (4) Mobile (4) ISV (4) LetsEncrypt (3) Internet Explorer (3) Networking (3) NuGet (3) Help Builder (3) IIS7 (3) DataBinding (3) Conferences (3) IIS (3) Windows (3) Internet Explorer (3) ADO.NET (3) Angular (3) WebLog (3) Software Development (3) Opinion (3) Razor (3) RegEx (2) RSS (2) Speaking (2) Tools (2) WinForms (2) .NET (2) WinForms (2) WPF (2) .NET Core (2) ASP.NET vNext (2) Bugs (2) Installation (2) Help (2) Office (2) Musings (1) Markdown Monster (1) Maui (1) IOS (1) iPhone (1) JSON (1) Linux (1) Deployment (1) Dynamic Types (1) FireFox (1) Flexbox (1) Graphics (1) Hardware (1) Control Development (1) Azure (1) Chocolatey (1) Addins (1) Linux (1) Markdown Monster (1) Typescript (1) .NET Core (1) C# (1) FoxPro (1) HTML5 (1) Travel (1) Testing (1) Threading (1) SEO (1) wwHoverPanel (1) Windsurfing (1) Web Deployment Projects (1) Web Design (1)

GZip/Deflate Compression in ASP.NET MVC

If you want to create ASP.NET MVC content that uses gzip or deflate compression you need to use some custom code. Here's an action filter that compresses content in your ASP.NET MVC applications.

Internet Explorer and Cookie Domains

Got tripped up today by another IE issue: Internet Explorer will not accept Cookies with local domains set for the Cookie Domain and fail silently.

Getting a 'base' Domain from a Domain

I was surprised to see that there wasn't some way in .Net to retrieve the base domain name from a sub-domain. For example, I want www.west-wind.com, and store.west-wind.com to return me just the base url. Easy enough but there are a couple small issues to check for especially when dealing with string based domain names.

ASP.NET MVC Postbacks and HtmlHelper Controls ignoring Model Changes

Today I discovered an MVC behavior I hadn't noticed: For HTML helper controls MVC always uses POSTBACK values to display the control value rather than model values when the View is rendering in a POST back. In effect this means that MVC Views can't update the value of controls during a POST back using the standard HTML Helper Controls.

Wishful Thinking: Why can't HTML fix Script Attacks at the Source?

I'm dealing with user HTML input in a Web application today and again I curse over the complexities involved in sanitizing this html. So today I started dreaming about a possible alternative...

Odd MVC 4 Beta Razor Designer Issue

I have an odd designer issue with MVC 4 Razor pages which are causing errors in the environment.

Physical Directories vs. MVC View Paths

Physical directories that map paths that are also mapped by ASP.NET MVC routes can cause some consternation, especially if you're not aware that there's pathing overlap between the two. This post is a story about an operator error episode of an accidental file move that took a while to trace down due physical path interference.

Creating a JSONP Formatter for ASP.NET Web API

Web API doesn't include native JSONP support, but it's pretty easy to create a custom formatter that handles this task. Here's how to create a JsonpFormatter and hook it up as well as a short review of how JSONP works.
West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2017