ButtonExtensions.cs 577 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc.Html;
  6. using Bowin.Web.Controls.Mvc;
  7. namespace System.Web.Mvc
  8. {
  9. public static class ButtonExtensions
  10. {
  11. public static MvcHtmlString Button(this HtmlHelper htmlHelper,
  12. ButtonOptions buttonOptions,
  13. System.Collections.Generic.IDictionary<string, string> htmlAttributes = null)
  14. {
  15. return MvcHtmlString.Create(Bowin.Web.Controls.Mvc.Button.CreateControl(buttonOptions,htmlAttributes).Render() );
  16. }
  17. }
  18. }