Custom ASP.NET MVC Authorization Attribute For Ajax Requests

by Bill Beckelman 1. April 2010 14:34
One issue that I have had for a while that I think I finally solved was what to do with unauthorized jQuery Ajax requests in my ASP.NET MVC application. I finally wrote a custom authorization attribute to take care of the situation. I ran into two issues while constructing the attribute; the first ... [More]

Send Email To a Drop Folder in ASP.NET or ASP.NET MVC

by Bill Beckelman 31. March 2010 13:10
Just a quick tip that I picked up somewhere a while back. Just add the code below to your web config and you don’t have to worry about sending out test emails. It will just drop a .eml file to the folder you designate. You can then open the file and inspect the email with just about any email client... [More]

Policy Signing in C# for Streaming Private Content From Amazon CloudFront

by Bill Beckelman 30. March 2010 12:29
On March 29, 2010 Amazon announced public availability of CloudFront’s private content streaming feature. When I first looked at Amazon’s CloudFront offering a few weeks ago, this feature was one I knew I needed and it wasn’t available so I didn’t look much further. With this announcement, I decided... [More]

Tags:

ASP.NET MVC | ASP.NET | AWS

Log Parser 2.2 From Microsoft

by Bill Beckelman 24. March 2010 08:01
I really like ELMAH for logging unhandled exceptions on my websites. Some of the things that it logs are the user’s IP address as well as the page they were attempting to reach and the referring page that they came from. Sometimes though, this isn’t quite enough and I like to look at the IIS log fil... [More]

Tags:

IIS | ASP.NET MVC | ASP.NET

JetBrains WebStorm IDE

by Bill Beckelman 19. March 2010 09:44
I have been using the new web IDE from JetBrains (the makers of Resharper) called WebStorm through several of their preview releases now. I have to say I am really impressed. The Javascript and CSS editors seem to be miles ahead of Visual Studio (2008 at least).  They are projecting a beta rele... [More]

Zen Coding – VS Studio Plugin

by Bill Beckelman 28. November 2009 12:13
Last week I saw an article on Ajaxian about Zen Coding which is a way to generate html markup and css from css selectors. Something like div#Dialog>fieldset>ol>li*3>label + a hotkey will create: Code Snippet <div id="Dialog">     <fieldset> ... [More]

Use jQuery to Show a Link’s Address After its Text When Printing In IE6 and IE7

by Bill Beckelman 16. February 2009 22:10
I found a cool trick in a post by Remy Sharp that appends the address of a hyperlink to the end of the link’s text when the page is printed. Unfortunately the trick only works in browsers that support the CSS2 pseudo selector :after. Firefox, Safari, Chrome*, Opera and now IE8 all support the select... [More]

Tags:

ASP.NET | CSS | jQuery

Copy to Clipboard with ZeroClipboard, Flash 10 and jQuery

by Bill Beckelman 22. January 2009 08:15
So I knew it would happen at some point. Some handy flash developer would figure out how to get around the security limitation in Flash 10 that requires the System.setClipboard() method (ActionScript) to only be called by an action that originates from a user interaction. Last week I ran across an a... [More]

Tags:

jQuery | ASP.NET

More jQuery Alert Dialogs Demo

by Bill Beckelman 14. January 2009 06:48
A couple of weeks ago I wrote about Cory S.N. LaViska’s new jQuery Alert Dialogs Plugin. Since then I have used it quite a bit and have been really happy with its ease of use and simplicity. At the end of the my first post about the plugin I said I would try and show you a way to setup an alert from... [More]

Tags:

ASP.NET | jQuery | CSS

Set the Content of a NicEdit WYSIWYG Instance With JavaScript

by Bill Beckelman 7. January 2009 15:17
In a couple of previous posts I have used the pretty cool NicEdit WYSIWYG editor. Today I wanted to show you how you can use its JavaScript API to set the content of the editor’s body to the data of the item you want to edit. Please remember to be careful when accepting html content from users! Dem... [More]

Tags:

jQuery | ASP.NET


About Me

I live and work in Salt Lake City, Utah. My background is in aviation. I have a degree in Aeronautical Science from Embry-Riddle Aeronautical University in Prescott, AZ. I have worked as a commercial airline pilot and most recently as a technical advisor for a charter airline.