I am trying to use twitter bootstrap based slider in my mvc project and the razor syntax i used on the textblock is
@Html.TextBoxFor(model => model.Left,new { @class = "form-control", data-slider-min="0", data-slider-max="20", data-slider-step="1" })
And at runtime its returning error
Compilation Error
Description: 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: CS0746: Invalid anonymous type member declarator. Anonymous type members must be declared with a member assignment, simple name or member access.
So how can i set the params data-slider-id='ex1Slider' type="text" data-slider-min="0" data-slider-max="20" data-slider-step="1" data-slider-value="" on HtmlTextBoxFor Razor element