Steps for creating a chat client using ASP.net 4.5 :
1) Install Visual Studio 2011 Developer Preview (download)
2) Install NuGet Package Manager (download)
3) File -> New -> Project
![clip_image002[1] clip_image002[1]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGZxK85m6TRgEUVwaMWNG7ma08nWtqPNylrf_2ol9F72oDmqPgh1AeR4OH9FA8UC73FWsS0_fEuajuu6QRB-EvgTUTZ7mt0KJVkOnOMihW8DOYrh3_f7hVcYjOHXKNmkKOSxbp/?imgmax=800)
4) Right Click on References -> Manage NuGet Packages
![clip_image004[1] clip_image004[1]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLydAIipl2Y0RX0oL-NyjiHtmxy3ntveRDStt5P1zOi7QS6VnrZjwl7p_tyzl1RftCFH7RDMrQU1VKiy73q-idrXY25X_0pPxDBXGvEzoXgcuc2eKBHJR8j1iWCbnYjZ_7IlG3/?imgmax=800)
1) Search “SignalR” and install the package
![clip_image002[3] clip_image002[3]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpFG45_jIHFu8WKFlAMhgLzPfmCJVcY9GVTR5Q26uTmYhwMX3hsK-g9PFFbSWDOhpjGXl3LIcpTTMdvnsndYD_dkqD8b-udLnE8Mr20BCCtV_ApNDOCFqzgn1NsveVBWtoHMJ9/?imgmax=800)
2) Add 2 files “Default.aspx” and “Chat.cs” and change the code as below:
![clip_image004[3] clip_image004[3]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe4OpJMar70tUQWWtE_qVTSVUoJzEl4eeLL-phEYidc8Ytdru6sT07MsZluK2uPaPbaRrCWeujuYmu11fgqX60Rkd0PP3EwahKkIqflNRWS84DeFsaZQCWwACTH1Lwitd6ddVy/?imgmax=800)
(*Note : I am referring to my C# type and methods in Javascript )
3) Done.
![clip_image006[6] clip_image006[6]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTPwtcGoBx_bBYL2fLobSXnt1-qC9xJM74onlnVdiWtWPA_7fYksNwtezBqhljoAph-kbPpmJMqaW7kZf2ynFfN48MFxbSrIDcAnmuR6ivbrt0xurqxm0ZIlWF346q63bI13R/?imgmax=800)
You may think this is trivial but believe me, it isn’t ..
This is the most exciting piece of technology that I have seen so far from BUILD (offcourse after Windows Native Apps in HTML5 & Javascript) so I would encourage everyone to start playing with VS 2011.
And if you haven’t seen yet what happened in BUILD than I would strongly recommend you see it here.
Web development is taking a whole new perspective with HTML 5 and Javascript . . . .
1) Install Visual Studio 2011 Developer Preview (download)
2) Install NuGet Package Manager (download)
3) File -> New -> Project
4) Right Click on References -> Manage NuGet Packages
1) Search “SignalR” and install the package
2) Add 2 files “Default.aspx” and “Chat.cs” and change the code as below:
(*Note : I am referring to my C# type and methods in Javascript )
3) Done.
You may think this is trivial but believe me, it isn’t ..
This is the most exciting piece of technology that I have seen so far from BUILD (offcourse after Windows Native Apps in HTML5 & Javascript) so I would encourage everyone to start playing with VS 2011.
And if you haven’t seen yet what happened in BUILD than I would strongly recommend you see it here.
Web development is taking a whole new perspective with HTML 5 and Javascript . . . .
1 comment:
Excellent post on SignalR for beginners. here is one more post on signalr with a sample, have a look at it
Real time Push Notifications with SignalR & PNotify (Pines Notify)
http://www.msguy.com/2011/11/real-time-push-notifications-with.html
Post a Comment