I seen may samples of SignalIR and KnockoutJS samples on MVC platform but not on WebForm. Please suggest me, can we use on WebForm? Any articles link would be appreciable.
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- implementing html5 drag and drop photos with knock
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
I know this is exactly a month late but here's a quick example [this is a trivial example that i have built from exploring MVC examples]
lets say u have a page called MyPage
in the .aspx file write the following:
and actually nothing in the .cs file [or the code behind]
you'll need to add the ASP.NET folder "Add_Code" and place a class "Chat.cs" in it with the following code:
SignalR hosting (server side) is implemented as AspNetHandler so there is not any dependency on mvc. SignalR client and KnockoutJs are javascript components without any dependency on mvc or web forms. Just use web methods for web forms instead of mvc's action methods.