Example #1
0
 /// <summary>
 /// Returns an HTML label element and the property name of the property that is represented by the specified expression.
 /// </summary>
 ///
 /// <returns>
 /// An HTML label element and the property name of the property that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the property to display.</param><param name="labelText">The label text to display.</param><param name="htmlAttributes">An object that contains the HTML attributes to set for the element.</param><typeparam name="TModel">The type of the model.</typeparam><typeparam name="TValue">The type of the value.</typeparam>
 public static MvcHtmlString LabelFor <TModel, TValue>(this DnnHtmlHelper <TModel> html, Expression <Func <TModel, TValue> > expression, string labelText, IDictionary <string, object> htmlAttributes)
 {
     return(html.HtmlHelper.LabelFor(expression, labelText, htmlAttributes));
 }
 /// <summary>
 /// Returns an HTML input element for each property in the model, using the specified template name and HTML field name.
 /// </summary>
 ///
 /// <returns>
 /// An HTML input element for each property in the model and in the named template.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="templateName">The name of the template to use to render the object.</param><param name="htmlFieldName">A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.</param>
 public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, string templateName, string htmlFieldName)
 {
     return(html.HtmlHelper.EditorForModel(templateName, htmlFieldName));
 }
 /// <summary>
 /// Returns an HTML input element for each property in the object that is represented by the expression, using the specified template.
 /// </summary>
 ///
 /// <returns>
 /// An HTML input element for each property in the object that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the object that contains the properties to display.</param><param name="templateName">The name of the template to use to render the object.</param>
 public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, string templateName)
 {
     return(html.HtmlHelper.Editor(expression, templateName));
 }
 /// <summary>
 /// Returns an HTML input element for each property in the object that is represented by the expression, using the specified template, HTML field name, and additional view data.
 /// </summary>
 ///
 /// <returns>
 /// An HTML input element for each property in the object that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the object that contains the properties to display.</param><param name="templateName">The name of the template to use to render the object.</param><param name="htmlFieldName">A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.</param><param name="additionalViewData">An anonymous object that can contain additional view data that will be merged into the <see cref="T:System.Web.Mvc.ViewDataDictionary`1"/> instance that is created for the template.</param><typeparam name="TModel">The type of the model.</typeparam><typeparam name="TValue">The type of the value.</typeparam>
 public static MvcHtmlString EditorFor <TModel, TValue>(this DnnHtmlHelper <TModel> html, Expression <Func <TModel, TValue> > expression, string templateName, string htmlFieldName, object additionalViewData)
 {
     return(html.HtmlHelper.EditorFor(expression, templateName, htmlFieldName, additionalViewData));
 }
 /// <summary>
 /// Returns an HTML input element for each property in the model, using additional view data.
 /// </summary>
 ///
 /// <returns>
 /// An HTML input element for each property in the model.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="additionalViewData">An anonymous object that can contain additional view data that will be merged into the <see cref="T:System.Web.Mvc.ViewDataDictionary`1"/> instance that is created for the template.</param>
 public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, object additionalViewData)
 {
     return(html.HtmlHelper.EditorForModel(additionalViewData));
 }
Example #6
0
        public static MvcHtmlString TextAreaFor <TModel, TProperty>(this DnnHtmlHelper <TModel> html, Expression <Func <TModel, TProperty> > expression)
        {
            var htmlHelper = html.HtmlHelper as HtmlHelper <TModel>;

            return(htmlHelper.TextAreaFor(expression, TextAreaRows, TextAreaColumns, null));
        }
Example #7
0
        public static MvcHtmlString TextAreaFor <TModel, TProperty>(this DnnHtmlHelper <TModel> html, Expression <Func <TModel, TProperty> > expression, int rows, int columns, object htmlAttributes)
        {
            var htmlHelper = html.HtmlHelper as HtmlHelper <TModel>;

            return(htmlHelper.TextAreaFor(expression, rows, columns, htmlAttributes));
        }
Example #8
0
 /// <summary>
 /// Returns an HTML label element and the property name of the property that is represented by the specified expression.
 /// </summary>
 ///
 /// <returns>
 /// An HTML label element and the property name of the property that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the property to display.</param><param name="htmlAttributes">An object that contains the HTML attributes to set for the element.</param>
 public static MvcHtmlString Label(this DnnHtmlHelper html, string expression, object htmlAttributes)
 {
     return(html.HtmlHelper.Label(expression, htmlAttributes));
 }
Example #9
0
 /// <summary>
 /// Returns an HTML label element and the property name of the property that is represented by the specified expression.
 /// </summary>
 ///
 /// <returns>
 /// An HTML label element and the property name of the property that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the property to display.</param><param name="labelText">The label text.</param><param name="htmlAttributes">An object that contains the HTML attributes to set for the element.</param>
 public static MvcHtmlString Label(this DnnHtmlHelper html, string expression, string labelText, IDictionary <string, object> htmlAttributes)
 {
     return(html.HtmlHelper.Label(expression, labelText, htmlAttributes));
 }
Example #10
0
 /// <summary>
 /// Returns an HTML label element and the property name of the property that is represented by the specified expression.
 /// </summary>
 ///
 /// <returns>
 /// An HTML label element and the property name of the property that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="labelText">The label text.</param><param name="htmlAttributes">An object that contains the HTML attributes to set for the element.</param>
 public static MvcHtmlString LabelForModel(this DnnHtmlHelper html, string labelText, object htmlAttributes)
 {
     return(html.HtmlHelper.LabelForModel(labelText, htmlAttributes));
 }
Example #11
0
 /// <summary>
 /// Returns an HTML label element and the property name of the property that is represented by the specified expression using the label text.
 /// </summary>
 ///
 /// <returns>
 /// An HTML label element and the property name of the property that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the property to display.</param><param name="labelText">The label text to display.</param>
 public static MvcHtmlString Label(this DnnHtmlHelper html, string expression, string labelText)
 {
     return(html.HtmlHelper.Label(expression, labelText));
 }
Example #12
0
 /// <summary>
 /// Returns an HTML label element and the property name of the property that is represented by the specified expression.
 /// </summary>
 ///
 /// <returns>
 /// An HTML label element and the property name of the property that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="htmlAttributes">An object that contains the HTML attributes to set for the element.</param>
 public static MvcHtmlString LabelForModel(this DnnHtmlHelper html, IDictionary <string, object> htmlAttributes)
 {
     return(html.HtmlHelper.LabelForModel(htmlAttributes));
 }
Example #13
0
 /// <summary>
 /// Returns an HTML label element and the property name of the property that is represented by the specified expression using the label text.
 /// </summary>
 ///
 /// <returns>
 /// An HTML label element and the property name of the property that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="labelText">The label text to display.</param>
 public static MvcHtmlString LabelForModel(this DnnHtmlHelper html, string labelText)
 {
     return(html.HtmlHelper.LabelForModel(labelText));
 }
Example #14
0
 /// <summary>
 /// Returns an HTML label element and the property name of the property that is represented by the model.
 /// </summary>
 ///
 /// <returns>
 /// An HTML label element and the property name of the property that is represented by the model.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param>
 public static MvcHtmlString LabelForModel(this DnnHtmlHelper html)
 {
     return(html.HtmlHelper.LabelForModel());
 }
Example #15
0
        public static MvcHtmlString TextArea(this DnnHtmlHelper html, string name, string value, object htmlAttributes)
        {
            var htmlHelper = html.HtmlHelper;

            return(htmlHelper.TextArea(name, value, htmlAttributes));
        }
Example #16
0
 /// <summary>
 /// Renders the specified partial view, passing it a copy of the current <see cref="T:System.Web.Mvc.ViewDataDictionary"/> object, but with the Model property set to the specified model.
 /// </summary>
 /// <param name="html">The HTML helper.</param><param name="model">The model.</param><param name="partialViewName">The name of the partial view.</param>
 public static void RenderPartial(this DnnHtmlHelper html, object model, string partialViewName)
 {
     html.HtmlHelper.RenderPartial(partialViewName, model, html.HtmlHelper.ViewData);
 }
Example #17
0
        public static MvcHtmlString TextArea(this DnnHtmlHelper html, string name, string value, int rows, int columns, IDictionary <string, object> htmlAttributes)
        {
            var htmlHelper = html.HtmlHelper;

            return(htmlHelper.TextArea(name, value, rows, columns, htmlAttributes));
        }
Example #18
0
 /// <summary>
 /// Renders the specified partial view, replacing the partial view's ViewData property with the specified <see cref="T:System.Web.Mvc.ViewDataDictionary"/> object and setting the Model property of the view data to the specified model.
 /// </summary>
 /// <param name="html">The HTML helper.</param><param name="partialViewName">The name of the partial view.</param><param name="model">The model for the partial view.</param><param name="viewData">The view data for the partial view.</param>
 public static void RenderPartial(this DnnHtmlHelper html, string partialViewName, object model,
                                  ViewDataDictionary viewData)
 {
     html.HtmlHelper.RenderPartial(partialViewName, model, viewData);
 }
Example #19
0
        public static MvcHtmlString TextAreaFor <TModel, TProperty>(this DnnHtmlHelper <TModel> html, Expression <Func <TModel, TProperty> > expression, IDictionary <string, object> htmlAttributes)
        {
            var htmlHelper = html.HtmlHelper as HtmlHelper <TModel>;

            return(htmlHelper.TextAreaFor(expression, TextAreaRows, TextAreaColumns, htmlAttributes));
        }
Example #20
0
 /// <summary>
 /// Gets the display name.
 /// </summary>
 ///
 /// <returns>
 /// The display name.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the object that contains the display name.</param>
 public static MvcHtmlString DisplayName(this DnnHtmlHelper html, string expression)
 {
     return(html.HtmlHelper.DisplayName(expression));
 }
 /// <summary>
 /// Returns an HTML input element for each property in the object that is represented by the <see cref="T:System.Linq.Expressions.Expression"/> expression, using the specified template.
 /// </summary>
 ///
 /// <returns>
 /// An HTML input element for each property in the object that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the object that contains the properties to display.</param><param name="templateName">The name of the template to use to render the object.</param><typeparam name="TModel">The type of the model.</typeparam><typeparam name="TValue">The type of the value.</typeparam>
 public static MvcHtmlString EditorFor <TModel, TValue>(this DnnHtmlHelper <TModel> html, Expression <Func <TModel, TValue> > expression, string templateName)
 {
     return(html.HtmlHelper.EditorFor(expression, templateName));
 }
Example #22
0
 /// <summary>
 /// Gets the display name for the model.
 /// </summary>
 ///
 /// <returns>
 /// The display name for the model.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the object that contains the display name.</param><typeparam name="TModel">The type of the model.</typeparam><typeparam name="TValue">The type of the value.</typeparam>
 public static MvcHtmlString DisplayNameFor <TModel, TValue>(this DnnHtmlHelper <TModel> html, Expression <Func <TModel, TValue> > expression)
 {
     return(html.HtmlHelper.DisplayNameFor(expression));
 }
 /// <summary>
 /// Returns an HTML input element for each property in the model.
 /// </summary>
 ///
 /// <returns>
 /// An HTML input element for each property in the model.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param>
 public static MvcHtmlString EditorForModel(this DnnHtmlHelper html)
 {
     return(html.HtmlHelper.EditorForModel());
 }
Example #24
0
 /// <summary>
 /// Gets the display name for the model.
 /// </summary>
 ///
 /// <returns>
 /// The display name for the model.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param>
 public static MvcHtmlString DisplayNameForModel(this DnnHtmlHelper html)
 {
     return(html.HtmlHelper.DisplayNameForModel());
 }
 /// <summary>
 /// Returns an HTML input element for each property in the object that is represented by the expression.
 /// </summary>
 ///
 /// <returns>
 /// An HTML input element for each property in the object that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the object that contains the properties to display.</param>
 public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression)
 {
     return(html.HtmlHelper.Editor(expression));
 }
Example #26
0
        public static MvcHtmlString TextArea(this DnnHtmlHelper html, string name, IDictionary <string, object> htmlAttributes)
        {
            var htmlHelper = html.HtmlHelper;

            return(htmlHelper.TextArea(name, htmlAttributes));
        }
 /// <summary>
 /// Returns an HTML input element for each property in the model, using the template name, HTML field name, and additional view data.
 /// </summary>
 ///
 /// <returns>
 /// An HTML input element for each property in the model.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="templateName">The name of the template to use to render the object.</param><param name="htmlFieldName">A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.</param><param name="additionalViewData">An anonymous object that can contain additional view data that will be merged into the <see cref="T:System.Web.Mvc.ViewDataDictionary`1"/> instance that is created for the template.</param>
 public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, string templateName, string htmlFieldName, object additionalViewData)
 {
     return(html.HtmlHelper.EditorForModel(templateName, htmlFieldName, additionalViewData));
 }
Example #28
0
        public static MvcHtmlString TextArea(this DnnHtmlHelper html, string name, string value)
        {
            var htmlHelper = html.HtmlHelper;

            return(htmlHelper.TextArea(name, value));
        }
 /// <summary>
 /// Returns an HTML input element for each property in the object that is represented by the expression, using the specified template and additional view data.
 /// </summary>
 ///
 /// <returns>
 /// An HTML input element for each property in the object that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the object that contains the properties to display.</param><param name="templateName">The name of the template to use to render the object.</param><param name="additionalViewData">An anonymous object that can contain additional view data that will be merged into the <see cref="T:System.Web.Mvc.ViewDataDictionary`1"/> instance that is created for the template.</param>
 public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, string templateName, object additionalViewData)
 {
     return(html.HtmlHelper.Editor(expression, templateName, additionalViewData));
 }
Example #30
0
 /// <summary>
 /// Returns an HTML label element and the property name of the property that is represented by the specified expression.
 /// </summary>
 ///
 /// <returns>
 /// An HTML label element and the property name of the property that is represented by the expression.
 /// </returns>
 /// <param name="html">The HTML helper instance that this method extends.</param><param name="expression">An expression that identifies the property to display.</param><param name="htmlAttributes">An object that contains the HTML attributes to set for the element.</param><typeparam name="TModel">The type of the model.</typeparam><typeparam name="TValue">The value.</typeparam>
 public static MvcHtmlString LabelFor <TModel, TValue>(this DnnHtmlHelper <TModel> html, Expression <Func <TModel, TValue> > expression, object htmlAttributes)
 {
     return(html.HtmlHelper.LabelFor(expression, htmlAttributes));
 }