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 SinghPosted Jun 22, 2021, 11:57 AM
Sachin SinghPosted Jun 23, 2021, 6:49 AM
Ramco RamcoPosted Jun 23, 2021, 5:00 AM
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
Ramco RamcoPosted Jun 23, 2021, 4:58 AM
Ramco RamcoPosted Jun 23, 2021, 4:10 AM
Satya KarkiPosted Jun 23, 2021, 2:19 AM
Ramco RamcoPosted Jun 23, 2021, 1:36 AM
Satya KarkiPosted Jun 22, 2021, 6:03 PM