https://github.com/scottaddie/taghelpersuite
A collection of ASP.NET Core Tag Helpers.
https://github.com/scottaddie/taghelpersuite
asp-net-core c-sharp
Last synced: 2 months ago
JSON representation
A collection of ASP.NET Core Tag Helpers.
- Host: GitHub
- URL: https://github.com/scottaddie/taghelpersuite
- Owner: scottaddie
- License: mit
- Created: 2018-02-19T04:07:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-23T22:55:13.000Z (over 7 years ago)
- Last Synced: 2025-03-27T18:21:28.503Z (3 months ago)
- Topics: asp-net-core, c-sharp
- Language: C#
- Homepage:
- Size: 506 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TagHelperSuite 
## Overview
This collection of Tag Helpers will evolve and expand over time. For now, it includes the following:
1. `` - Produces an anchor element which posts the form in which it's placed. Brings ASP.NET 4.x Web Forms LinkButton control behavior to ASP.NET Core MVC and Razor Pages.
Consider the following markup in the *Index.cshtml* file of a Razor Pages app:
```html
Test Link
```
When clicked, the associated page model's `OnPost` handler is invoked:
```csharp
public class IndexModel : PageModel
{
public void OnPost()
{
}
}
```## Installation
1. Add a reference to the [NuGet package](https://www.nuget.org/packages/TagHelperSuite/):
```console
dotnet add package TagHelperSuite
```1. Restore NuGet package:
```console
dotnet restore
```1. Register the Tag Helpers in *_ViewImports.cshtml*:
```cshtml
@addTagHelper *, TagHelperSuite
```## Acknowledgements
Credit goes to [Isaac Levin](https://twitter.com/isaac2004) for the idea that lead to the creation of the `` Tag Helper.