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

Kirtesh ShahRank #250 · 10K reputationPosted Jun 19, 2021, 1:45 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jun 19, 2021, 2:53 AM EDT
Hi
On below line it is giving error - $(...).Html is not a function
$("#AnyDiv").Html(data);
Index View
Thanks
Ramco RamcoRank #462 · 5.4K reputationPosted Jun 19, 2021, 3:13 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Jun 19, 2021, 3:47 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Jun 19, 2021, 1:45 AM EDT
class
="modal-danger">Delete ConfirmationSachin SinghRank #66 · 26.2K reputationPosted Jun 19, 2021, 2:44 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Jun 19, 2021, 3:07 AM EDT
add reference of Jquery in your main view or layout
and Html is small html
$("#anyDiv").html(data);
Sachin SinghRank #66 · 26.2K reputationPosted Jun 19, 2021, 3:15 AM EDT