DCSIMG
ASP.Net - Ran Wahle's blog

Ran Wahle's blog

Browse by Tags

All Tags » ASP.Net (RSS)
Demo code and Slide decks from my signalR session
Today I gave my session about signalR at Sela Developer Practice . It went great and I wish to thank all attendees.  Furthermore,I wish to thank everyone who helped me through the day with my ill baby who I had to bring to the conference. Here are the demos, including some additional demos we didn’t go through. Here, you can see the slides from today’s presentation
Real-time web experience with signalR Slides and demos
Yesterday, I had a great time speaking about signalR in front of WDCIL audience. We had some problems at the beginning when we couldn’t duplicate my screen display. Fortunately Yaniv Rodensky came to the rescue with his own laptop,and surprisingly all demos worked well. I want to thank all attendees who came to hear me speak.   Below, you can see the slides from my presentation, and download demos Here .   Realtime web experience with signalR from ranwahle
Logging with SignalR
Logging with SignalR Debugging your signalR application on both client and server can consume time. To save time we might go to Fiddler ,  or use the Network tab on our browser’s developer tools. signalR offers simple logging mechanism for javascript clients. in this post I’ll briefly show how to enable this log, what it writes when enable, and how to add some custom log records.   Enable logging To enable logging you simply need to add the following $.connection.hub.logging = true ; After...
First signalR eBook by Jose M. Aguilar
First signalR eBook was published yesterday. The book was authored by Jose M. Aguilar, Microsoft ASP.NET MVP.   The book is free of charge along with code samples.   Click here to download.
SignalR Protocol
SignalR Protocol   After showing how to get started with SignalR , how to use it with .Net client and how to self host it, I wish to show what SignalR does on the network level. In this post I will review the protocol SignalR implements and see what data is sent at the various stages.   Negotiation phase: One of SignalR best qualities is its ability to support various communication techniques without its API user have to change his/her code. Therefore both client and server needs to “negotiate...
About embedded & external resource files
About embedded & external resource files Recently I was asked by a colleague of mine to help him with a problem. He had tried numerous times to work with resource files on a web project and got many errors until he had moved the files build action from content to embedded resource.   What’s the difference? Embedded resources are files that are put inside the compiled assembly when compiling it. However, when a resource file build action is content , only the .designer.cs file that comes...
Self Hosting SignalR
Self Hosting SignalR SignalR , as shown in the earlier posts, can be hosted within a regular ASP.NET application (in other words, on IIS), but can also be self-hosted. You may want to do so if you don’t want the SignalR hosting machine to have IIS installed. In this post I’ll show a simple way of doing so with a console application. It won’t be much different with windows service and I’ll explain how to do it there as well.   Step 1: Install Nuget packages   There are two nuget packages...
Using SignalR with .Net client
Using SignalR with .Net client   In my previous post I demonstrated how to use SignalR with javascript client. After this post, I got an email from my extremely talented colleague Bnaya Eshet   asking if there’s a way to to SignalR with .Net client. I said “yes” of course so now I want to demonstrate how to do it. The server side code is the same as in my previous post , this is just another client example.   Step 1: Create .Net client project: Add some .Net project, any project type...
Getting started with SignalR
Recently I’ve begun testing ASP.NET.SignalR, an open source project that supports real-time web functionality in our application.SignalR logo SignalR can be added to an existing ASP.NET application and help as easily gain real-time functionality in no-time. It can run with browsers that supports HTML5 WebSocket or long polling (IE 8). SignalR has both server and client code, its client code is based on jQuery In this post I’ll demonstrate how to work with SignalR along with a few basic terms related to it....
Internet Explorer 8 (and below) won’t show some of your jpegs
A very strange phenomenon I came across while developing web application for a customer. A Jpeg formatted picture wasn’t shown on IE8 browsers, while shown on others (Firefox 5, Chrome 12, IE9). ...
Changing namespace in ASP.NET Web-Form
Changing namespace in ASP.NET Web-Form When converting VS Web-Site to VS Web application One of the problem you might stumble upon is class name collisions. It is due to the fact that web-site, because of it’s compilation mode, can have the same class name (and no namespace) on different files because they will end up in different assemblies. On web-application though, it is a different story. All classes ends up in the same assembly and therefore we have to name them differently. You will encounter...
Using session manager class in Global.asax
Long ago, I’ve written about Session Manager class. The class purpose was to wrap session variables in properties and gain type safety to them. In this class we’ve added a Session property with get accessor, which wraps the HttpContext.Current.Session. Everything went well until I’ve encountered the need to use this class on Session_End method in global.asax ...
Configure your ASP.NET application that uses routing in IIS-6
After coding our routing handler in our ASP.NET application (available in .NET 3.5 and in much easier way in .NET 4) Since IIS-6 doesn’t use .Net as a natural part of it’s pipeline there is a need to do some configuration. ...
How to divide page into user controls as quietly as possible?
Post by my friend and colleague Gil Fink, has reveled one of the difficulties of our project. A legacy system, poorly designed and implemented and our need of rewriting some of it's code in order to make it easier for us to extent it with more features as demanded by our users. Another aspect of our legacy system was pages with lots of controls, almost each and every one of them has server-side event (click, textChanged, selectedIndexChanded, etc.) while best practice is to divide the page into units of User Controls while the page acts as a router between them and between them and the business layer....
Behind The Scene - Control ID's in ASP.Net
We all familiar with the terms of ID, ClientID and UniqueID which are properties of Control class. In this post I'll dive into the way the last two read-only properties values are being set and when. ...