LMB.HtmlHelperExtensions
1.0.1
dotnet add package LMB.HtmlHelperExtensions --version 1.0.1
NuGet\Install-Package LMB.HtmlHelperExtensions -Version 1.0.1
<PackageReference Include="LMB.HtmlHelperExtensions" Version="1.0.1" />
paket add LMB.HtmlHelperExtensions --version 1.0.1
#r "nuget: LMB.HtmlHelperExtensions, 1.0.1"
// 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
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 thea 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:
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.
Product | Versions 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. |
-
- Microsoft.AspNet.Mvc (>= 5.2.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added Frameworks 4.6 and 4.6.1