/// <summary>
 /// Buttons to remote.
 /// </summary>
 /// <param name="html">The HTML.</param>
 /// <param name="name">The name.</param>
 /// <param name="options">The options.</param>
 /// <param name="htmlAttr">The HTML attr.</param>
 /// <returns></returns>
 public static String ButtonToRemote(this HtmlHelper html, String name, RemoteOption options, object htmlAttr)
 {
     return ButtonToRemote(html, name, "form-button ui-state-default ui-corner-all", options, htmlAttr);
 }
 /// <summary>
 /// Submits to remote.
 /// </summary>
 /// <param name="html">The HTML.</param>
 /// <param name="name">The name.</param>
 /// <param name="cssClass">The CSS class.</param>
 /// <param name="option">The option.</param>
 /// <param name="htmlAttr">The HTML attr.</param>
 /// <returns></returns>
 public static String SubmitToRemote(this HtmlHelper html, String name, String cssClass, RemoteOption option, object htmlAttr)
 {
     return Javascript.SubmitToRemote(name, cssClass, option, htmlAttr);
 }
 /// <summary>
 /// Buttons to remote without the form required.
 /// </summary>
 /// <param name="html">The HTML.</param>
 /// <param name="name">The name.</param>
 /// <param name="options">The options.</param>
 /// <returns></returns>
 public static String ButtonToRemote(this HtmlHelper html, String name, RemoteOption options)
 {
     return ButtonToRemote(html, name, options, null);
 }
 /// <summary>
 /// remote function
 /// </summary>
 /// <param name="html"></param>
 /// <param name="option"></param>
 /// <returns></returns>
 public static String RemoteFunc(this HtmlHelper html, RemoteOption option)
 {
     return Javascript.RemoteFunc(option);
 }
 /// <summary>
 /// submit to remote button
 /// </summary>
 /// <param name="html"></param>
 /// <param name="name"></param>
 /// <param name="option"></param>
 /// <returns></returns>
 public static String SubmitToRemote(this HtmlHelper html, String name, RemoteOption option)
 {
     return Javascript.SubmitToRemote(name, option);
 }
 public static String LinkToRemote(this HtmlHelper html, String name, String cssClass, RemoteOption option)
 {
     return Javascript.LinkToRemote(name, cssClass, option);
 }
 /// <summary>
 /// load remote
 /// </summary>
 /// <param name="html"></param>
 /// <param name="option"></param>
 /// <returns></returns>
 public static String LoadRemote(this HtmlHelper html, RemoteOption option)
 {
     return Javascript.LoadRemote(option);
 }
Exemple #8
0
 /// <summary>
 /// remote function
 /// </summary>
 /// <param name="html"></param>
 /// <param name="option"></param>
 /// <returns></returns>
 public static String RemoteFunc(this HtmlHelper html, RemoteOption option)
 {
     return(Javascript.RemoteFunc(option));
 }
        /// <summary>
        /// Buttons to remote.
        /// </summary>
        /// <param name="html">The HTML.</param>
        /// <param name="name">The name.</param>
        /// <param name="cssClass">The CSS class.</param>
        /// <param name="options">The options.</param>
        /// <param name="htmlAttr">The HTML attr.</param>
        /// <returns></returns>
        public static String ButtonToRemote(this HtmlHelper html, String name, String cssClass, RemoteOption options, object htmlAttr)
        {
            var onClick = Javascript.RemoteFunc(options);
              var builder = new TagBuilder("input");

              builder.MergeAttribute("type", "button");
              builder.MergeAttribute("onClick", onClick);
              builder.MergeAttribute("value", name);
              if (cssClass != "")
            builder.MergeAttribute("class", cssClass);

              builder.MergeAttributes((htmlAttr == null) ? new RouteValueDictionary() : new RouteValueDictionary(htmlAttr));

              return builder.ToString();
        }
Exemple #10
0
 public static String LinkToRemote(this HtmlHelper html, String name, String cssClass, RemoteOption option)
 {
     return(Javascript.LinkToRemote(name, cssClass, option));
 }
Exemple #11
0
 /// <summary>
 /// load remote
 /// </summary>
 /// <param name="html"></param>
 /// <param name="option"></param>
 /// <returns></returns>
 public static String LoadRemote(this HtmlHelper html, RemoteOption option)
 {
     return(Javascript.LoadRemote(option));
 }
Exemple #12
0
 /// <summary>
 /// Submits to remote.
 /// </summary>
 /// <param name="html">The HTML.</param>
 /// <param name="name">The name.</param>
 /// <param name="cssClass">The CSS class.</param>
 /// <param name="option">The option.</param>
 /// <param name="htmlAttr">The HTML attr.</param>
 /// <returns></returns>
 public static String SubmitToRemote(this HtmlHelper html, String name, String cssClass, RemoteOption option, object htmlAttr)
 {
     return(Javascript.SubmitToRemote(name, cssClass, option, htmlAttr));
 }
Exemple #13
0
        /// <summary>
        /// Buttons to remote.
        /// </summary>
        /// <param name="html">The HTML.</param>
        /// <param name="name">The name.</param>
        /// <param name="cssClass">The CSS class.</param>
        /// <param name="options">The options.</param>
        /// <param name="htmlAttr">The HTML attr.</param>
        /// <returns></returns>
        public static String ButtonToRemote(this HtmlHelper html, String name, String cssClass, RemoteOption options, object htmlAttr)
        {
            var onClick = Javascript.RemoteFunc(options);
            var builder = new TagBuilder("input");

            builder.MergeAttribute("type", "button");
            builder.MergeAttribute("onClick", onClick);
            builder.MergeAttribute("value", name);
            if (cssClass != "")
            {
                builder.MergeAttribute("class", cssClass);
            }

            builder.MergeAttributes((htmlAttr == null) ? new RouteValueDictionary() : new RouteValueDictionary(htmlAttr));

            return(builder.ToString());
        }
Exemple #14
0
 /// <summary>
 /// Buttons to remote.
 /// </summary>
 /// <param name="html">The HTML.</param>
 /// <param name="name">The name.</param>
 /// <param name="options">The options.</param>
 /// <param name="htmlAttr">The HTML attr.</param>
 /// <returns></returns>
 public static String ButtonToRemote(this HtmlHelper html, String name, RemoteOption options, object htmlAttr)
 {
     return(ButtonToRemote(html, name, "form-button ui-state-default ui-corner-all", options, htmlAttr));
 }
Exemple #15
0
 /// <summary>
 /// Buttons to remote without the form required.
 /// </summary>
 /// <param name="html">The HTML.</param>
 /// <param name="name">The name.</param>
 /// <param name="options">The options.</param>
 /// <returns></returns>
 public static String ButtonToRemote(this HtmlHelper html, String name, RemoteOption options)
 {
     return(ButtonToRemote(html, name, options, null));
 }
Exemple #16
0
 /// <summary>
 /// submit to remote button
 /// </summary>
 /// <param name="html"></param>
 /// <param name="name"></param>
 /// <param name="option"></param>
 /// <returns></returns>
 public static String SubmitToRemote(this HtmlHelper html, String name, RemoteOption option)
 {
     return(Javascript.SubmitToRemote(name, option));
 }