Handling Android back button in HTML5 application

Today I faced an issue with my HTML5 application. In this application we are showing a JQuery popup window. Client has reported a high priority(?) issue like, when he press the Android phone back button, instead of closing the popup window, application is getting closed. Here is the code snippet...


K-MUG KOCHI DEVCON 2014 - 15 February 2014

The Kerala Microsoft Users Group (K-MUG) will be organizing a Developers Conference, K-MUG KOCHI DEVCON 2014 on 15th February 2014 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...


Assembly generation failed - Referenced assembly does not have a strong name

Recently while working a on project I faced an error like this. The assembly without strong name was a third party dll, I don’t have the source code with me. If you have strong named your application, it is a requirement like you need to strong name all your referenced...


Load Data while Scrolling Page Down with jQuery and ASP.Net MVC

This post is about Facebook style data loading while scrolling down the page. To identify the page scroll down, you can use the following snippet. $(window).scroll(function () { if ($(window).scrollTop() == $(document).height() - $(window).height()) { //This is an Ajax method which will fetch the data from server FetchDataFromServer(); } });...


Singleton Design Pattern - C# implementation

The singleton pattern is a software design pattern that is used to restrict instantiation of a class to one object. This is useful when we require exactly one object of a class to perform our operations. In this pattern we ensure that the class has only one instance and we...


How to make String.Contains case insensitive?

The string.Contains() method in C# is case sensitive. And there is not StringComparison parameter available similar to Equals() method, which helps to compare case insensitive. If you run the following tests, TestStringContains2() will fail. [TestMethod] public void TestStringContains() { var text = "This is a sample string"; Assert.IsTrue(text.Contains("sample")); } [TestMethod]...


Xamarin Android Push Notifications using Google Cloud Messaging (GCM) and ASP.Net

This post is about implementing Push Notifications in Xamarin Android using Google Cloud Messaging (GCM). Google Cloud Messaging for Android (GCM) is a free service that helps developers send data from servers to their Android applications on Android devices, and upstream messages from the user’s device back to the cloud....