© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
22 replies
sea cryptid

❔ The name "onclick" does not exist in the current context

I have
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Web

at the top and
<button class="btn btn-secondary" @onclick="e => HandleSubmit(e)">Sign Up</button>
<button class="btn btn-secondary" @onclick="e => HandleSubmit(e)">Sign Up</button>

below.
2023-01-20_13_50_18-BookGroup_-_Microsoft_Visual_Studio.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Name does not exist in the current context
C#CC# / help
2y ago
❔ Name "PostsService" does not exist in the current context
C#CC# / help
4y ago
✅ The name does not exist in current context. (forms)
C#CC# / help
4y ago
The name 'InitializeComponent' does not exist in the current context
C#CC# / help
2y ago