Last post Nov 18, 2014 03:56 AM by PatriceSc
Nov 18, 2014 01:05 AM|Prabhakar26|LINK
In signalr application view create a Hub class, hub class object is created in java script to make calls on server.
unlike MVC whare controller will sent view, but where view is return from signalr applicaiton?
Nov 18, 2014 03:56 AM|PatriceSc|LINK
http://stackoverflow.com/questions/11642815/render-mvc-partialview-into-signalr-response but make sure first this is your best option. If you really can't update the current view with "pure" data, my first move would be just to send back a view name/id
that would then be retrieved from the client side (ie not sending the ui, but telling the client side which ui should be retrieved). Sending a whole HTML markup directly from SignalR would be likely my last choice. Not sure what is your scenario.
Edit: please avoid to ask the same question multiple times:
http://forums.asp.net/t/2019988.aspx?How+to+send+UI+to+browser+from+signalr so that we don"t start from the beginning each time. From past post I wonder if you even need SignalR at all. For now, all I can see is that you want to replace a view with another
view after user authentication or something like that which is not at all the purpose of SignalR.