Pargoon.TagHelpers 8.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Pargoon.TagHelpers --version 8.0.0                
NuGet\Install-Package Pargoon.TagHelpers -Version 8.0.0                
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="Pargoon.TagHelpers" Version="8.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pargoon.TagHelpers --version 8.0.0                
#r "nuget: Pargoon.TagHelpers, 8.0.0"                
#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 Pargoon.TagHelpers as a Cake Addin
#addin nuget:?package=Pargoon.TagHelpers&version=8.0.0

// Install Pargoon.TagHelpers as a Cake Tool
#tool nuget:?package=Pargoon.TagHelpers&version=8.0.0                

Pargoon.TagHelpers

NuGet Version NuGet Downloads

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 and asp-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 Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows 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
9.0.0 31 11/16/2024
8.0.0 97 8/3/2024
1.0.0 314 5/17/2022