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 SinghPosted Jun 21, 2021, 5:26 AM
class
="modal-title">Ramco RamcoPosted Jun 21, 2021, 5:21 AM
Sachin SinghPosted Jun 21, 2021, 5:11 AM
Ramco RamcoPosted Jun 21, 2021, 2:01 AM
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 SinghPosted Jun 20, 2021, 6:09 PM
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.