Blogs

Jan 18 2009

Client side validator to check for HTML

In ASP.NET if the Page's ValidateRequest property is set to true, posted data is checked to see if it contains potentially malicious input data, such as HTML and JavaScript.

While this is useful and creates a more secure default environment to prevent cross-site scripting, it can be very user unfriendly if users attempt to post hyperlinks or linked images to your application. Simply put, you could disable this property and perform input validation on the server side to attempt to remove malicious data, but instead I'll show you how to gracefully handle suspected malicious code.

Jan 15 2009

What a BOSH implementation

If you've never heard of BOSH (Bidirectional-streams Over Synchronous HTTP), you would not be the only one. I only heard of it yesterday while exploring the steps involved in an MVC (model-view control) implementation for our OnlineTesting system.

Jan 13 2009

Maximum Request Length Exceeded and Http Timeout Exception

In an application I was receiving two errors related to uploads: "Max request length exceeded" and "Timeout". Here is the simple fix to dealing with both.

Jan 13 2009

Google's AJAX API

This is not a new item, but it came up recently so I decided to post about it. If you use a public AJAX library such as jQuery or script.aculo.us you may find this helpful/interesting/both.

Jan 13 2009

Return URL's in ASP.NET MVC Postbacks

One of the neat things about the ASP.NET MVC framework is the ability to reuse bits of user interface code. A problem can present itself when you create a reusable view that posts data. Hard coding a redirect can lead to a difficult and frustrating user experience. I'm going to show you a simple way to redirect back to the originating page.

Jan 13 2009

Launchy

A cool little application for Windows users who deal with many programs (read: more than one) would have to be something called Launchy.

Jan 12 2009

Where, oh where is my referer (sic)

So it would seem that IE has an issue with tracking the referring page when Javascript redirection is used. Fortunately there is a relatively simple solution to this conundrum.

Jan 12 2009

And it begins

So it seems Drupal is just as convoluted as any other CMS system. Between the endless function-following and various other non-standard (read: not a way I would do it, but probably more standard than my way) ways to configure variables, I have finally found a way to get that damned Home link on the primary links without setting a database entry.

Recent comments