This question is locked. New answers and comments are not allowed.
I'm trying to set up html attributes at IntegerTextBox, but get an error message.
What is wrong?
Code:
@{
var s = "empty";
Html.Telerik().IntegerTextBox().Spinners(false)
.InputHtmlAttributes(new { class = "t-input InputQuantity" })
.HtmlAttributes(new { id = "txtQuantity", class = "Quantity" })
.Name("Quantity").EmptyMessage(string.Empty);
}
Error:
Compilation ErrorDescription: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1513: } expectedSource Error:Line 85: var s = "empty";
Line 86: Html.Telerik().IntegerTextBox().Spinners(false)Line 87: .InputHtmlAttributes(new { class = "t-input InputQuantity" }) <- error hereLine 88: .HtmlAttributes(new { id = "txtQuantity", class = "Quantity" })