Skip to content

Instantly share code, notes, and snippets.

View jarrettmeyer's full-sized avatar

Jarrett Meyer jarrettmeyer

View GitHub Profile
//
// jQuery UI combobox
// Based on the combobox example on the jQuery UI home page.
// Must load both jQuery and jQuery UI Widgets before loading this document.
// I use CSS to position the button inside the input element, so it looks just
// like a drop down box.
//
$.widget("ui.combobox", {
_create: function () {
var self = this;
/// <summary>
/// Get all HTTP POSTed Files that were uploaded as part of a
/// multipart form POST. This abstraction keeps the controller
/// from dealing with the Request object directly.
/// </summary>
public IEnumerable<HttpPostedFileBase> HttpPostedFiles
{
get
{
// _httpContext has been pre-assigned to be the current HttpContextBase
using System.Web.Mvc;
using System.Web.Routing;
namespace jarrettmeyer.Web.Lib
{
public static class RouteHelpers
{
/// <summary>
/// Connects a distinct path to a controller/action.
/// </summary>