Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Why input do not bind value to variable in this code

$
0
0

I started learning inputs in Blazor. When I try run this code, it doesn't show any errors, but when I enter some text in the input control, then it won't show up in the <h1>...

<PageTitle>Home</PageTitle><h1>@Meno</h1><input class="form-control" @bind-value="@Meno" @bind-value:event="oninput" />@code {    private string Meno = "Jano";}

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>