Archives for December 2013

Beginners Guide to Cookies in ASP.NET

Cookies are small files temporarily created on the client’s system or browser memory. In ASP.NET cookies are used for state management and mostly to store small pieces of information in a client system whenever needed. The most interesting thing about cookies is that it works transparently with the user and can be easily read in anywhere in your web application.


Cookies are stored in plain text format. If the application uses cookies, the server sends it and the browser will store it. Examples of where cookies are stored are for keeping user preferences in a specific site, remember a password, and store user information. Cookies have a lot of advantages and disadvantages.

Read this post to learn more about cookies:

Lock Page and Disable all ASP.NET Form Controls then Load Animated GIF During a Post-Back

The biggest problem in web pages, particularly ASP.NET forms, is that it can take up a long time to process once it is submitted. This can be a problem specially when submitting forms. The user thinks that your site is not submitting their input so they press the submit button again hoping to get the information faster. One way we can solve this is by disabling the submit button once it is pushed, but what if your page has more than one button?

In this article, we’ll show you how to disable all your ASP.NET form controls during a postback and show a friendly animated GIF while the page is posting back.


Read the rest of the article here:

How to Build Store-Ready Apps for Windows Phone

Mobile devices have been prevalent nowadays. There are a lot of mobile devices available in the market that it even exceeds the number of laptop and desktop users. As a developer, you need to have your apps created and listed in the Marketplace as it is your only opportunity to reach out to millions of users. However, you need to make sure that these apps meet the criteria set by these stores.

This article will show you how to create an end-to-end Windows Phone Store ready application which can meet all store requirements for you to publish and for end-users to download it.

Read the rest of the post here:

XML Mapping and Validation in .NET

Sometimes, there are big projects in which XML is used to convey information into different modules instead of using JSON. Information handling is sometimes very heavy and some techniques are used in place of lack of planning and design. Although frameworks can provide mechanisms for those kind of errors, the solution is scalable, and even impossible to maintain.

In the case of XML, there are a lot of solutions to solve most of the problems, and one of them is getting data from sources. In this post, we’ll show how to map two different data sources that are structurally equivalent and the data gotten has to be put the other one.

Read the rest of the post here:

How to Create an Android Client for Team Foundation Server 2012

The biggest challenge in Team Foundation Server 2012 is that Android devices do not have the capability to use Team Foundation Server APIs directly. This is because Android devices uses Java for application development and they do not have a large enough memory and processor to handle a full-fledged TFS APIs. The first problem is addressed by publishing a Java SDK for TFS, but the second problem is more difficult to address.


TFS API are only meant to be used by rich applications on MS Windows Desktop platform, however with the advances in mobile technology and use of devices it has been necessary to access TFS from mobile apps, like for instance, Android Applications. TFS OData creates an opportunity by providing light weight access to TFS over http/https.

Read the rest of the post here:

How to Get Compile-Time View Errors in ASP.NET

One of the best things about compiled language over scripting is that you can get compile-time checks and prevent run-time errors later. By default, ASP.NET MVC uses a hybrid approach. The views are compiled at run-time but controllers, models, and other classes are pre-compiled. You can create strongly-typed views but since those views aren’t compiled at run time, you don’t always get warned about the changes to your models or other errors.

There is a simple way to change this. You need to see the views to built at compile time.

Read the rest of the post here:

Whats New in ASP.NET Web API 2

ASP.NET Web API provides a quick yet powerful way to built HTTP services that can easily be consumed by a variety of clients. It is simple to get started using and it has a lot of features like filters, formatters, and message handlers that can be used to extend when needed.


Here are some of the best features of ASP.NET Web API 2:

Attribute Routing. Attribute Routing is extremely easy to use and it gets the job done. However, it does not include the default api string on the from of the route you might be used to seeing. It is possible to add “api” in front of the route but then you have to repeat is across attribute-based routes as well.

Returning responses with IHttpActionResult. This new interface which is similar to ActionResult in ASP.NET MVC can be used as the return type for Web API controller actions. To return a custom response, you can use the new helper methods exposed to the ApiController.

Read the rest of the post here:


Windows Azure Releases New Scheduler Service, Read-Access Geo Redundant Storage, and Monitoring Updates

Windows Azure has just released another set of enhancements for Windows Azure. The new update includes:

Windows Azure Scheduler Service. The new Windows Azure Scheduler service will allow you to schedule jobs that invoke HTTP/S endpoints or post messages to a storage queue on any schedule you define.

New Read-Access Geo Redundant Storage Option. The New Geo Redundant Storage option is a major improvement to the Windows Azure Storage Geo Replicated storage. The option provided has built-in support for automatically replicating storage data from one region to another, but access to the secondary location isn’t provided unless in a disaster scenario.

Enhancement to Monitoring and Diagnostics for Windows Azure Services. With today’s update, you can monitor metrics for the CPU and IO activity of premium SQL databases and the storage activity of Premium and Standard databases.

These improvements are now available to be used immediately but some features are still in preview.

Read the rest of the post here: