Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

358
Views
Blazor Server-side Restart the app @onclick event

Blazor Forms Calculator that takes inputs and calculates numbers. At the end I have two buttons, Download PDF (with the results) and New Calculation that will restart the application.

<button @onclick=Print style="background-color:green;">
    Download PDF
</button>
<button  style="background-color:green;">
    New Calculation
</button>

Can I do that with the @onclick event or call a Javascript function?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I have used Navigation Manager and have navigated the app on the Index page

    private void HandleClick()
{
    NavigationManager.NavigateTo("/", true);
}

calling it on click

    <button @onclick=HandleClick style="background-color:green;" class="btn btn- 
        primary btn-medium hidewhenprint">
     New Calculation
        </button>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!