How to change lync status using C#
Another Lync post :) This snippet will help you to change the lync status(available, away, busy etc) using C# and Lync API. As I mentioned in the earlier post, you need to install the Lync SDK. Here is the snippet var lyncClient = LyncClient.GetClient(); lyncClient.Self.BeginPublishContactInformation( new Dictionary<PublishableContactInformationType, object>() { {...
Building a Lync bot using C#
Long back I wrote an article on creating a language translation bot using Skype and C#, since Microsoft stopped Skype COM API, and I am using lync more than Skype, I thought of writing the same implementation using lync. The implementation is pretty same, you have to get the instance...
Android - How to intercept SMS messages and prevent them from appearing in the Inbox
Android allows app developers to intercept SMS, here is the code snippet, which will help you to get the sms details and if you require you can stop them appearing in the inbox. First you need to set the permission for the app to receive and process SMS. You can...
Creating user friendly strings for C# enums
Recently one of my colleague asked me question, he want to create a enum with string values. But C# doesn’t support string based enums, so here is the code snippet which will help you to associate string values to enums. This code is not using any custom attribute, instead it...
MVC5 Ajax form is not updating DIV but replacing the whole page instead
While working on MVC5 application, I faced this issue, I was using Ajax.BeginForm() and from controller, I was returning content result. But instead of updating the DIV, the content was opened in new Tab. Initially I thought it was due to some javascript error, but it was not working with...
Load ASP.NET MVC partial views on link click
Some one asked me how we can load partial views on link click. Here is the snippet for the same. Long version - Using JQuery <script type="text/javascript"> $("#loadPartialView").click(function () { $.get('@Url.Action("LoadPartialView","Home")', {}, function (response) { $("#Display").html(response); }); }); </script> And here is the small version using Ajax.ActionLink @Ajax.ActionLink("Load Partial View",...
K-MUG KOCHI DEVCON 2015 - March 14
The Kerala Microsoft Users Group (K-MUG) will be organizing a Developers Conference, K-MUG KOCHI DEVCON 2015 on 14th March 2015 at InfoPark Hall, Athulya Cafeterial Block in Kakkanad. K-MUG is one of the best developer community in India, which got Best User Group award in India as part of Microsoft...
HTML5 Application Cache and Azure websites
Today I faced any issue with HTML5 Application Cache (I will post about HTML5 Application Cache later), I deployed an HTML5 application to azure website, but I was getting error like this Application Cache Error event: Manifest fetch failed (404) This issue was due to the MIME type mapping was...