Thanks to Stephen for the initial help with this article.
http://stephenwalther.com/blog/archive/2008/08/23/asp-net-mvc-tip-36-create-a-popup-calendar-helper.aspx
public static string Create(this AjaxHelper helper, string clientType, string elementId, Dictionaryargs) { StringBuilder argSb = new StringBuilder(); if (args != null && args.Count > 0) { argSb.Append("{"); foreach (string key in args.Keys) { if (argSb.Length > 1) argSb.Append(","); argSb.Append("'") .Append(key); if (args[key].Contains("$")) { argSb.Append("':") .Append(args[key]); } else { argSb.Append("':'") .Append(args[key]) .Append("'"); } } argSb.Append("}"); } //{'class':'element_wrapper'} StringBuilder sb = new StringBuilder(); sb.AppendLine(""); return sb.ToString(); } //{'class':'element_wrapper'} StringBuilder sb = new StringBuilder(); sb.AppendLine(""); return sb.ToString(); }