Question: How do you solve Asp.Net Core Razor Error CS1003: Syntax error, ',' expected?
Login to See the Rest of the Answer
Answer: Look carefully where it shows the line numbers that is where you need to start looking: ".cshtml(112,152,112,160): error CS1003: Syntax error, ',' expected"
- In the case above, starting looking from line 112 up to 160 for clues.
<div class="form-group"> <label asp-for="PropertyName" class="control-label">TextInHere</label> @*Below is where the error is coming from, did you notice that "disabled" is in a wrong directive?*@ <input asp-for="PropertyName disabled" value="@Model.Value" class="form-control" /> <input asp-for="PropertyName" hidden value="TextValue" class="form-control" /> </div>?