I have have added textbox in blazor application.When I bind textbox value to model .It shows an below error message.Please check this message and advise how to solve this issue
Severity Code Description Project File Line Suppression State
Error The attribute names could not be inferred from bind attribute 'bind-Value'. Bind attributes should be of the form 'bind' or 'bind-value' along with their corresponding optional parameters like 'bind-value:event', 'bind:format' etc. SampleProject.Client D:\Blazor\Sample\SampleProject\SampleProject\Client\Pages\SupplierPage.razor 17
note:-
I have added s"yncfusion.Blazor 18.4.0.49" Package in my solution from nutget.
I haved added "@using Syncfusion.Blazor" in Import.razor file.
code:-
@page "/Supplier"
@inherits SupplierPagBase
<h3>Supplier</h3>
@if (mode != FormModes.List)
{
@if (model != null)
{
<EditForm Model="@model" OnValidSubmit="@SaveData">
<DataAnnotationsValidator />
<div class="form-row">
<div class="form-group col-md-6">
<label class="col-form-label">First Name :</label>
<SfTextBox @bind-Value="@model.SupplierCode"></SfTextBox>
@*<ValidationMessage For="@(() => e.FirstName)"></ValidationMessage>*@
</div>
<div class="form-group col-md-6">
<label class="col-form-label">Last Name :</label>
<SfTextBox @bind-Value="@model.SupplierName"></SfTextBox>
<ValidationMessage For="@(() => model.SupplierName)"></ValidationMessage>
</div>
</div>
</EditForm>
}
}
@code {
}