Horje
call Textboxfor in cs Code Example
call Textboxfor in cs
public static class CustomHtmlHelper {

    public static MvcHtmlString MyFieldBox<TModel, TProperty>(this HtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, String title) {

        StringBuilder sb = new StringBuilder();
        sb.AppendLine("<div class=\"field-box\">");
        sb.AppendLine("<div class=\"field-box">\");
        sb.AppendLine("<label>{0}</label>", title);
        sb.AppendLine("<div class=\"col-md-7\">");
        sb.AppendLine( htmlHelper.TextBoxFor( expression, new { @class = "form-control inline-input" }) );
        sb.AppendLine("</div>");
        sb.AppendLine( htmlHelper.ValidationMessageFor( expression );
        sb.AppendLine("</div>");
        return new MvcHtmlString( sb.ToString() );
    }

}




Csharp

Related
wpf richtextbox clear text Code Example wpf richtextbox clear text Code Example
lol Code Example lol Code Example
winforms reportviewer.print report Code Example winforms reportviewer.print report Code Example
How to get 4 end len in string c# Code Example How to get 4 end len in string c# Code Example
c# how to load type of class from string Code Example c# how to load type of class from string Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9