Hi
In below Modal in ID field it is showing undefined. Secondly how to enlarge size of CheckBox
@using (Html.BeginForm("CreateEdit", "Location", FormMethod.Post))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
}
Thanks

Sachin SinghRank #66 · 26.2K reputationPosted Jun 21, 2021, 1:26 AM EDT
class
="modal-title">Sachin SinghRank #66 · 26.2K reputationPosted Jun 20, 2021, 2:09 PM EDT
are you passing the model into this partial view?
if it is statically called then also you need to pass the model
if it is a view then make sure you are passing the model from the controller to view
if you have another issue like ModelState.IsValid is false then let me know.
Ramco RamcoRank #462 · 5.4K reputationPosted Jun 20, 2021, 10:01 PM EDT
HI
Below is the Controler thru which i am calling
[HttpGet]
public ActionResult CreateEdit(string Id)
{
if (String.IsNullOrEmpty(Id))
{
return PartialView("_CreateEdit", new Location());
}
else
{
return PartialView("_CreateEdit", dbLocation.GetById(Id));
}
}
*****************************
Thanks
Sachin SinghRank #66 · 26.2K reputationPosted Jun 21, 2021, 1:11 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jun 21, 2021, 1:21 AM EDT