Example #1
0
        public static string BarButtonsDetails(this HtmlHelper html, String editText, String backText)
        {
            StringBuilder sb = new StringBuilder("", HelperBaseExtensions.Capacity);

            if (!String.IsNullOrEmpty(editText))
            {
                sb.Append(html.ActionLinkEdit(editText));
            }
            if (!String.IsNullOrEmpty(backText))
            {
                sb.Append(html.ActionLinkBack(backText));
            }
            return(sb.ToString());
        }
Example #2
0
        public static string BarButtonsDetails <TModel, TValue>(this HtmlHelper <TModel> html,
                                                                Expression <Func <TModel, TValue> > expression, String editText, String backText) where TModel : class
        {
            String        actionName = ((LambdaExpression)expression).Compile().DynamicInvoke(html.ViewData.Model).ToString();
            StringBuilder sb         = new StringBuilder("", HelperBaseExtensions.Capacity);

            if (!String.IsNullOrEmpty(editText))
            {
                sb.Append(html.ActionLinkEdit(editText, new { id = actionName }));
            }
            if (!String.IsNullOrEmpty(backText))
            {
                sb.Append(html.ActionLinkBack(backText));
            }
            return(sb.ToString());
        }
 public static String ActionLinkEdit(this HtmlHelper html, String linkText, object routeValues, String iconPrimary)
 {
     return(html.ActionLinkEdit(linkText, routeValues, iconPrimary, HelperBaseExtensions.ButtonJQuery.Edit.Icon2));
 }
 public static String ActionLinkEdit(this HtmlHelper html, object routeValues)
 {
     return(html.ActionLinkEdit(HelperBaseExtensions.ButtonJQuery.Edit.Text, routeValues, HelperBaseExtensions.ButtonJQuery.Edit.Icon1, HelperBaseExtensions.ButtonJQuery.Edit.Icon2));
 }