Hi
How to create a single Partial View for Create & Update . All Data Annotation values should get implemented at Client Side.using Modal Popup
public class Customer
{
public Customer()
{
}
[Key]
[Required(ErrorMessage = "Id cannot be Blank. Max length should be less than or equal to 20."), MaxLength(20)]
[Display(Name = "Id")]
public string Id { get; set; }
[Display(Name = "Description")]
[Required(ErrorMessage = "Customer Name cannot be Blank. Max length should be less than or equal to 50"), MaxLength(50)]
public string Description { get; set; }
[Display(Name = "Active")]
public bool IsActive { get; set; }
}
Thanks
Sachin SinghPosted Jun 19, 2021, 7:47 AM
Sachin SinghPosted Jun 19, 2021, 7:15 AM
Ramco RamcoPosted Jun 19, 2021, 7:13 AM
Sachin SinghPosted Jun 19, 2021, 7:07 AM
add reference of Jquery in your main view or layout
and Html is small html
$("#anyDiv").html(data);
Ramco RamcoPosted Jun 19, 2021, 6:53 AM
Hi
On below line it is giving error - $(...).Html is not a function
$("#AnyDiv").Html(data);
Index View
Thanks
Sachin SinghPosted Jun 19, 2021, 6:44 AM
Kirtesh ShahPosted Jun 19, 2021, 5:45 AM
Sachin SinghPosted Jun 19, 2021, 5:45 AM
class
="modal-danger">Delete Confirmation