Take a look at the following sample from Microsoft (not AJAX alone!): Http://www.microsoft.com/downloads/details.aspx?familyid=63388959-7320-4ffd-9167-655365d94b67&displaylang=en
To understand how to get the presence indicator that appears when you hover over a range text, look at C: \ Program Files \ Microsoft Office Communications Server 2007 \ Developer Samples \ Presence in web applications using the Communicator Automation API \ Examples \ Demo \ LitwareInc \ resources \ team \ Example.html after installing the sample.
If you want to add a presence indicator that always displays, you need to create a new identifier for each img tag that you add to your page. You can do this in codebehind by incrementing each counter variable by 1:
<img id=img" + presenceCounter + " src=presence_img/presence_16-unknown.png onload=PresenceControl(\"" + Mail_Address + "\")></span>`
source share