Skip to content

Error when using C# code in onclick handler of button #15611

@JohnyL

Description

@JohnyL

I am new to Blazor and I liked it very much. I want to put my time into learning it, so I began from beginning. :)
I was watching this video and was trying to set C# code for onclick handler of button. However, I receive error:

Argument 1: cannot convert from 'void' to 'string'

Here's screenshot of TodoList.cshtml:
IMG1

Metadata

Metadata

Assignees

No one assigned

    Labels

    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