How to host ASP.NET 5 Application in Azure Web Apps

Posted by Anuraj on Saturday, April 18, 2015

.Net ASP.Net ASP.Net MVC Windows Azure

This post is about hosting ASP.NET 5 Application in Azure WebApps / Websites. If you are using Visual Studio, you can use the publish wizard. But if you are using k or dnx runtimes this option is not available. ASP.NET wiki in GitHub contains a page about FTP deploy but it is not working :( Later I found another page, which discuss about this. But I had to spent some time to make the deployment work successfully.

How to change lync status using C#

Posted by Anuraj on Wednesday, April 15, 2015

.Net .Net 3.0 / 3.5 .Net 4.0 Windows Forms

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.

Building a Lync bot using C#

Posted by Anuraj on Monday, April 13, 2015

.Net .Net 3.0 / 3.5 .Net 4.0 Visual Studio Windows Forms

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.

Android - How to intercept SMS messages and prevent them from appearing in the Inbox

Posted by Anuraj on Tuesday, March 31, 2015

.Net Android Visual Studio

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.

Creating user friendly strings for C# enums

Posted by Anuraj on Thursday, March 19, 2015

.Net .Net 3.0 / 3.5 .Net 4.0 ASP.Net ASP.Net MVC Windows Forms

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 is using DescriptionAttribute class. Here is the enum, with the associated string values.

MVC5 Ajax form is not updating DIV but replacing the whole page instead

Posted by Anuraj on Sunday, March 15, 2015

.Net ASP.Net MVC HTML5 Javascript

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 Ajax.ActionLink also. Later I found it was due to missing “Microsoft.jQuery.Unobtrusive.Ajax” package. You can install this via NuGet.

Load ASP.NET MVC partial views on link click

Posted by Anuraj on Sunday, March 15, 2015

.Net ASP.Net MVC Javascript

Some one asked me how we can load partial views on link click. Here is the snippet for the same.
Subscribe


Copyright © 2017 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub