Onclick call function.

<a href="#" @onclick="@(e => ProductCategoryClicked(category.Id))">@category.Name</a>

<a href="#" @onclick="@(e => ProductCategoryClicked(Convert.ToInt32(product.ProductTypeId)))">@product.ProductType</a>
public void ProductCategoryClicked(int pProductCategory)
{
        
}

Onclick call function.

<a href="#" @onclick="@(e => OpenProductViewer(product.Id))">@product.Name</a>
public void OpenProductViewer(string pId)
{

}
Last modified: January 3, 2021

Author

Comments

Write a Reply or Comment