LMB.HtmlHelperExtensions 1.0.1

dotnet add package LMB.HtmlHelperExtensions --version 1.0.1
NuGet\Install-Package LMB.HtmlHelperExtensions -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LMB.HtmlHelperExtensions" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LMB.HtmlHelperExtensions --version 1.0.1
#r "nuget: LMB.HtmlHelperExtensions, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LMB.HtmlHelperExtensions as a Cake Addin
#addin nuget:?package=LMB.HtmlHelperExtensions&version=1.0.1

// Install LMB.HtmlHelperExtensions as a Cake Tool
#tool nuget:?package=LMB.HtmlHelperExtensions&version=1.0.1

HTML Helper Extensions

Donate

To make it easier to add content to a view, you can take advantage of something called an HTML Helper. An HTML Helper, typically, is a method that generates a string. You can use HTML Helpers to generate standard HTML elements such as textboxes, links, dropdown lists, and list boxes.

All of the HTML Helpers methods are called on the Html property of the view. For example, you render a TextBox by calling the Html.TextBox() method.

Using HTML Helper methods is optional. They make your life easier by reducing the amount of HTML and script that you need to write.

How it works?

The ASP.NET MVC framework includes a useful utility class named the TagBuilder class that you can use when building HTML helpers. The TagBuilder class, as the name of the class suggests, enables you to easily build HTML tags.

This extension provides two new HTML helpers:

  • Html.Button() to render an HTML button element with an Icon Font inside.
  • Html.LinkButton() to render an HTML link element (using the a href tag) with an Icon Font inside that will be rendered like a button.

How to use this extension?

To a complete documentation please see the GitHub project page

Where to get this extension?

You can install this extension direct from:

Nuget

Or instal with Package Manager Console

Install-Package LMB.HtmlHelperExtensions

Or you can download this github project and copy the HtmlHelperExtensions.cs file direct into your project.

Donations

If you enjoy this work, please consider supporting me for developing and maintaining this (and others) templates.

paypal

Product Compatible and additional computed target framework versions.
.NET Framework net46 is compatible.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 2,154 11/3/2017
1.0.0 1,021 11/1/2017

Added Frameworks 4.6 and 4.6.1