Blog posts on .NET, Azure, and more.

How to set Bing wallpaper as your desktop wallpaper

May 08, 2014 by Anuraj

.Net .Net 4.0 CodeProject Win 32 API Windows Forms Windows Phone

This post is about setting Bing wallpaper as your desktop wallpaper using C# and Windows Forms. is famous for having some nice pictures as wallpaper, updated on daily basis. The Bing Desktop application comes with same feature. Here is the code snippet, which has two parts one, download the wallpaper image from and set it as wallpaper using WIN32 APIs.

How to upload file in ASP.Net MVC

May 06, 2014 by Anuraj

.Net .Net 4.0 ASP.Net MVC

This post is about upload file to server using ASP.Net MVC 4. First you need to modify the controller to accept the posted file along with the model. So you can modify it like this.

Problem with Internet Explorer and JSONResult in MVC

May 05, 2014 by Anuraj

.Net ASP.Net ASP.Net MVC

While working with the ASP.Net MVC project, one of my QA team member reported a strange issue, while uploading a file, Internet Explorer 9, showing a download file dialog like this.

How to integrate JQuery UI Datepicker in MVC

May 05, 2014 by Anuraj

.Net .Net 4.0 ASP.Net ASP.Net MVC HTML5 Javascript

This post is about integrating JQuery UI DatePicker in MVC 4. First you need to modify the _layout.cshtml. Because by defualt, it won’t include required references for JQuery UI. You need to include both CSS and JS for JQuery UI references. So the modified _layout.cshtml will look like this.

Loading partial view on Ajax.Actionlink click

May 04, 2014 by Anuraj

.Net ASP.Net MVC HTML5 Javascript

While working on an MVC project, I had to create few partial views and load them dynamically using Ajax. Here is the code snippet for the same.

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