The repeater is data-bound when the page is rendered on the server and then the HTML is sent to the client browser. To get updates into the HTML in the client you'll need to write some JavaScript to use the SignalR APIs to update the HTML directly. Alternatively,
if the updates aren't very frequent (e.g. >10 seconds apart) you might consider putting the repeater in an UpdatePanel and writing JavaScript to force a refresh of the UpdatePanel when you receive notification of new data via SignalR.
Damian Edwards
Senior Program Manager, ASP.NET
Microsoft
Marked as answer by davidfowl on Jan 28, 2013 06:03 AM
blgsyrmhnds
0 Points
1 Post
Using SignalR with Repeater or gridview
Dec 31, 2012 07:55 PM|LINK
i want to using real time data for my web site.So i want to use SignalR for data list i am using repeater as below
but How can i connect hub and get data inside from repeater?How can i bind repeater with data from hub?
DamianEdward...
Member
234 Points
37 Posts
Microsoft
Re: Using SignalR with Repeater or gridview
Jan 22, 2013 05:44 PM|LINK
The repeater is data-bound when the page is rendered on the server and then the HTML is sent to the client browser. To get updates into the HTML in the client you'll need to write some JavaScript to use the SignalR APIs to update the HTML directly. Alternatively, if the updates aren't very frequent (e.g. >10 seconds apart) you might consider putting the repeater in an UpdatePanel and writing JavaScript to force a refresh of the UpdatePanel when you receive notification of new data via SignalR.
Senior Program Manager, ASP.NET
Microsoft