Reputation: 41
Customer table has two fields : FullName And Gender
Lets say , I have dropdown customers. Customers is populated by fetching data from the customer table.
Now Lets I say I have two tabs open in the browser 1)You can perform CRUD functions on Customer table 2)Contains the customers dropdown and some other relevant data.
Performing a Crud operation in tab1 should automatically update the dropdown in the second tab without a refresh page.
How can I achieve this in asp.net mvc or asp.net ?
Like is it possible to bind my dropdown to a table change in asp.net ?
Upvotes: 0
Views: 76
Reputation: 91
You need to make use of Web Sockets. This protocol keeps a TCP connection open between the server and the client and changes to the customer table can be sent to the client.
The good news is that Microsoft provides an implementation of Web Socket protocol called SignalR and that simplifies things a lot.
Upvotes: 1