Hi
IN below code i want that error message appearing should have col-md-9.
Id Textbox will be col-md-3.
@Html.LabelFor(model => model.Id, htmlAttributes: new { @class = "control-label col-md-3" })
@Html.EditorFor(model => model.Id, new { htmlAttributes = new { @class = "form-control", @Value = Model.Id } })
@Html.ValidationMessageFor(model => model.Id, "", new { @class = "text-danger col-md-6" })
Thanks

Sachin SinghRank #66 · 26.2K reputationPosted Jun 22, 2021, 7:57 AM EDT
Satya KarkiRank #78 · 24.6K reputationPosted Jun 22, 2021, 2:03 PM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jun 22, 2021, 9:36 PM EDT
Satya KarkiRank #78 · 24.6K reputationPosted Jun 22, 2021, 10:19 PM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jun 23, 2021, 12:10 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jun 23, 2021, 12:58 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jun 23, 2021, 1:00 AM EDT
Hi All
Trying like below but not working
@Html.LabelFor(model => model.Id, htmlAttributes: new { @class = "control-label col-md-3" })
@Html.EditorFor(model => model.Id, new { htmlAttributes = new { @class = "form-control", @Value = Model.Id } })
@Html.ValidationMessageFor(model => model.Id, "", new { @class = "text-danger" } )
Thanks
Sachin SinghRank #66 · 26.2K reputationPosted Jun 23, 2021, 2:49 AM EDT