Last post Aug 14, 2014 04:25 AM by Kevin Shen - MSFT
Member
3 Points
46 Posts
Aug 13, 2014 03:31 PM|rperetz|LINK
I have a web page that is displaying a user grid, their status can change based on an activity done outside of the web page.
I would like to refresh the page automatically once the data has changed and I don't want to use Pooling.
I am using Web Forms .NET 4.5, Microsoft SQL Server 2005.
All-Star
16806 Points
2777 Posts
Aug 14, 2014 04:25 AM|Kevin Shen - MSFT|LINK
Hi rperrtz,
For your problem, I suggest that you can use signalr to refresh your web page when your data have changed in your database.
You can refer to the following link which demonstrate how to it.
http://techbrij.com/database-change-notifications-asp-net-signalr-sqldependency
About How to use Signalr ,please refer to the link below:
http://www.asp.net/signalr
Best Regards,
Kevin Shen.
Member
3 Points
46 Posts
Trigger a Java script function once my database was updated outside of the web application
Aug 13, 2014 03:31 PM|rperetz|LINK
I have a web page that is displaying a user grid, their status can change based on an activity done outside of the web page.
I would like to refresh the page automatically once the data has changed and I don't want to use Pooling.
I am using Web Forms .NET 4.5, Microsoft SQL Server 2005.
All-Star
16806 Points
2777 Posts
Re: Trigger a Java script function once my database was updated outside of the web application
Aug 14, 2014 04:25 AM|Kevin Shen - MSFT|LINK
Hi rperrtz,
For your problem, I suggest that you can use signalr to refresh your web page when your data have changed in your database.
You can refer to the following link which demonstrate how to it.
http://techbrij.com/database-change-notifications-asp-net-signalr-sqldependency
About How to use Signalr ,please refer to the link below:
http://www.asp.net/signalr
Best Regards,
Kevin Shen.