Click here to Skip to main content
15,896,118 members

Comments by akhter86 (Top 62 by date)

akhter86 15-Nov-23 12:10pm View    
@Gerry Schmitz i already used debit and credit field ,i did not understand you,( easiest way to avoid brain fog)
akhter86 7-Nov-23 4:13am View    
ok i try it ,let you know
akhter86 7-Nov-23 3:36am View    
Server side code ,its fine.so where need to do changes on client side

public ActionResult UpdateCustomer(CustomerMV customer)
{

{
Customer updatedCustomer = (from c in DB.Customers
where c.CustomerId == customer.CustomerId
select c).FirstOrDefault();

updatedCustomer.CustomerId = customer.CustomerId;
updatedCustomer.Name = customer.Name;
updatedCustomer.Country = customer.Country;
updatedCustomer.UserID = customer.UserID;
DB.SaveChanges();
}

return new EmptyResult();
}
akhter86 7-Nov-23 3:19am View    
Browsing console display below error

Duplicate form field id in the same form
Multiple form field elements in the same form have the same id attribute value. This might prevent the browser from correctly autofilling the form.
To fix this issue, use unique id attribute values for each form field.
akhter86 7-Nov-23 2:55am View    
there is not error in code,i am facing issue to update value from dropdown list to database,which is not updating