Pargoon.TagHelpers
9.0.0
dotnet add package Pargoon.TagHelpers --version 9.0.0
NuGet\Install-Package Pargoon.TagHelpers -Version 9.0.0
<PackageReference Include="Pargoon.TagHelpers" Version="9.0.0" />
paket add Pargoon.TagHelpers --version 9.0.0
#r "nuget: Pargoon.TagHelpers, 9.0.0"
// Install Pargoon.TagHelpers as a Cake Addin #addin nuget:?package=Pargoon.TagHelpers&version=9.0.0 // Install Pargoon.TagHelpers as a Cake Tool #tool nuget:?package=Pargoon.TagHelpers&version=9.0.0
Pargoon.TagHelpers
Pargoon.TagHelpers is a library for ASP.NET Core that adds Ajax capabilities to a
and form
tags in Razor pages. This library provides functionality similar to the Ajax Helper in the .NET Framework, making it easy to send Ajax requests.
Features
- AjaxAnchorTagHelper: Adds Ajax capabilities to
a
tags. - AjaxFormTagHelper: Adds Ajax capabilities to
form
tags.
Installation
You can install the Pargoon.TagHelpers
package via NuGet Package Manager:
Install-Package Pargoon.TagHelpers
Or via .NET CLI:
dotnet add package Pargoon.TagHelpers
Usage
To use these Tag Helpers, first register the library in your _ViewImports.cshtml
file:
@addTagHelper *, Pargoon.TagHelpers
AjaxAnchorTagHelper
This Tag Helper adds Ajax capabilities to a
tags.
Example:
<a asp-ajax="true" asp-ajax-method="GET" asp-ajax-update="#result" href="/Home/GetData">Get Data</a>
asp-ajax="true"
: Enables Ajax functionality.asp-ajax-method
: Specifies the HTTP method (e.g., GET, POST).asp-ajax-update
: CSS selector where the Ajax response will be placed.
AjaxFormTagHelper
This Tag Helper adds Ajax capabilities to form
tags.
Example:
<form asp-ajax="true" asp-ajax-update="#result" asp-controller="Home" asp-action="SubmitForm">
<input type="text" name="name" />
<button type="submit">Submit</button>
</form>
asp-ajax="true"
: Enables Ajax functionality.asp-ajax-update
: CSS selector where the Ajax response will be placed.asp-controller
andasp-action
: Specifies the controller and action to which the form will be submitted.
Contributing
Contributions are welcome! Please check out the contributing guidelines for more information.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Source Code
The source code for this library can be found on GitHub: Pargoon.TagHelpers Source Code
Contact
For any questions or suggestions, feel free to create an issue on the GitHub repository or contact the maintainer.
Made with ❤️ by Navid Faridi.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- Microsoft.AspNetCore.Mvc.Core (>= 2.1.38)
- Microsoft.AspNetCore.Mvc.TagHelpers (>= 2.1.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.