Use _:
@Html.TextBoxFor(o => o.TradeOrder.Symbol, new {data_message="Required"})
The TextBoxFor helper will know what to do and replace it with - when generating the markup.
Use _:
@Html.TextBoxFor(o => o.TradeOrder.Symbol, new {data_message="Required"})
The TextBoxFor helper will know what to do and replace it with - when generating the markup.