Jun 10, 2019 06:17 AM|Wei Zhang|LINK
According to your description, I have tested your code on my local machine. I find it works well and when I refresh the page it will show the new data I insert. So I suggest that you could try below ways.
1. I find your application use ajax, it will not directly show the data you insert but you should refresh it firstly. So have you refresh the page and see whether it will shows data you inserted?
2.I suggest that you could remote debug your web application with Visual Studio in your local machine by following the steps in the link. You could use worker processes to trace the process in application so that you could know why it didn't insert
Here is the link,I hope it could help you.
3.Since it has shown success , so could you please tell me where do you host the database? I think may be some one has the rights to modify your database if your sqlserver database is hosting on other server.