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

Mario ScheerenRank #1,371 · 1.2K reputationPosted May 14, 2019, 11:40 PM EDT
Madan ShekarRank #428 · 5.9K reputationPosted May 15, 2019, 12:09 AM EDT
SqlCommand comm; // other codes int numberOfRecords = comm.ExecuteNonQuery();
thanks
Mario ScheerenRank #1,371 · 1.2K reputationPosted May 15, 2019, 12:50 AM EDT
Posted Jun 12, 2019, 7:21 PM EDT
Event
jjj
Sivakumar KonetiRank #1,557 · 1K reputationPosted Jun 13, 2019, 1:10 AM EDT
Gajendra JangidRank #157 · 14.9K reputationPosted Jun 13, 2019, 2:03 AM EDT
Subin ThomasRank #724 · 3.2K reputationPosted May 14, 2019, 11:51 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts