i have a function in which if the data in table is already there then the new record is updated when submit button is clicked,
and if there is no data then the record is inserted when submit button is clicked
when submit button is clicked alert message displays record is successfully inserted
i want to write a count where it will display a message that how many records were updated and how many inserted
for eg if i click submit button it should come like
2 data inserted
5 data updated

Gajendra JangidPosted Jun 13, 2019, 6:03 AM
Sivakumar KonetiPosted Jun 13, 2019, 5:10 AM
Posted Jun 12, 2019, 11:21 PM
Event
jjj
Mario ScheerenPosted May 15, 2019, 4:50 AM
Madan ShekarPosted May 15, 2019, 4:09 AM
SqlCommand comm; // other codes int numberOfRecords = comm.ExecuteNonQuery();
thanks
Subin ThomasPosted May 15, 2019, 3:51 AM
Mario ScheerenPosted May 15, 2019, 3:40 AM