Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All.......

I am new in Asp.Net Web development..........

How to generate database change notification using SignalR and using Asp.Net web form application?

Thanks in advance.

Regards
Posted
Comments
Andy Lanng 11-Aug-15 10:28am    
Just to clarify: Do you currently have an event that fires when the database is changed?
IE: Do you just need to add SignalR methods or do you require the data change events as well?
Member 3153152 11-Aug-15 17:04pm    
I need to add SignalR methods along with data change events as well.

I dont have much idea about how to generate db change event and handle it using SignalR. Any sample, links, suggestions for this?

Thanks.

1 solution

Hello,

First you need to set up few things
I would suggest you to read some article about this topic.

For inspiration for example:
SignalR Database update notifications in ASP.NET MVC using SQL Dependency[^]

or

http://venkatbaggu.com/signalr-database-update-notifications-asp-net-mvc-usiing-sql-dependency/[^]

and you can google many more on this topic.

However if you are new to asp.net, at first you should start with something bit simpler.

But in short it works like this:

1. Set up event on a database
- this event will be fired when something will change
2. using asp.net and signal R (server side) you will deliver this information to client
3. using web-socket/http polling you will get this information to client (usually browser)

and same procedure is when client make change on his side, but from top(browser) to bottom (database)

Also you should think little bit about performance if you want to make a lot of changes in a real time it will consume a lot of memory on database side, because of lot of event will be triggered.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900