Blog
Blog posts on .NET, Azure, and more.
Creating user friendly strings for C# enums
March 19, 2015 by Anuraj
.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
March 15, 2015 by Anuraj
.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
March 15, 2015 by Anuraj
.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.
K-MUG KOCHI DEVCON 2015 - March 14
March 08, 2015 by Anuraj
ASP.Net User Group Activities Windows Azure
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 Community Impact award 2010. DEVCON 2015 will help you to engage and collaborate with Microsoft MVPs and thousands of your IT peers, building connections etc.
HTML5 Application Cache and Azure websites
March 06, 2015 by Anuraj
.Net .Net 4.0 ASP.Net MVC Visual Studio
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
Copyright © 2024 Anuraj. 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. Powered by Jekyll. Hosted with ❤ by GitHub