public static string TextBox(this HtmlHelper htmlHelper, string name, object value, object htmlAttributes, object dataAttributes) { RouteValueDictionary attributes = new RouteValueDictionary(htmlAttributes); attributes.AddDataAttributes(dataAttributes); return htmlHelper.TextBox( name, value, ((IDictionary<string, object>)attributes); }