Saturday, 14 September 2013

MVC and SignalR - avoid duplicating template

MVC and SignalR - avoid duplicating template

I am using MVC to display a table of data using Razor and html in my View.
To make it more "real time" I added a SignalR Hub that refreshes the table
with new rows and deletes the old ones. (not all rows are changed)
Problems is: now I've got a duplicate of row template. both in Html-Razor
and in JavaScript, I also had to hook on button handlers and other logic
twice.
Is there any better design for this?

No comments:

Post a Comment