I want to render this:
<input name="mode1" id="mode1" type="text" data-role="datebox" data-options='{"mode":"calbox", "useNewStyle":true}' />
...using a HtmlHelper. This is what I've tried, but it won't render:
@Html.TextBoxFor(model => model.Date,
new Dictionary<string, object> {
{ "data-role", "datebox" },
{ "data-options", "'mode':'calbox', 'useNewStyle':true" },
})
Anyone knows how this can be solved?
Thanks

New Topic/Question
Reply


MultiQuote




|