Skip to content

Button click event not triggered though Blazor. #63070

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
Hi,
I am trying to build an application where I want to go from one page to another, but somehow not able to do that. Code not able to trigger onlick function, not triggerting that function.
Below is my code :
namespace Blazer_Intro.Components.Pages
{
public partial class NextPage
{
Classes.ParamsClass paramsClass = new Classes.ParamsClass();
private void HandleBackClick()
{
Console.WriteLine("Test Done");
}
}
}
and HTML Code
@page "/nextPage"
@using Blazer_Intro.Components.Classes;

<h3>Details</h3>
<div> <span>@DataTransferService.Data!. results</span>

<button @OnClick="HandleBackClick">Cliked</button>
</div>
@code {

}

Need help regarding the same.


Original Comments

Feedback Bot on 6/25/2025, 04:05 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Author: Migration Bot 🤖The issue was created by a issue mover bot. The author may not be the actual author.Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions