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

Posted by Anuraj on Wednesday, January 8, 2014

.Net .Net 4.0 ASP.Net MVC Javascript

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.

Singleton Design Pattern - C# implementation

Posted by Anuraj on Sunday, January 5, 2014

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

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 provide a global point of access to this object. The normal implementation of singleton design pattern in C#like this.

How to make String.Contains case insensitive?

Posted by Anuraj on Saturday, January 4, 2014

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

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.

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

Posted by Anuraj on Wednesday, January 1, 2014

.Net ASP.Net Xamarin

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. The GCM service handles all aspects of queueing of messages and delivery to the target Android application running on the target device. A GCM implementation includes a Google-provided connection server, a 3rd-party app server that interacts with the connection server, and a GCM-enabled client app running on an Android device.

Error creating assembly manifest: Error signing assembly - Unknown error (8013141c)

Posted by Anuraj on Monday, December 30, 2013

.Net .Net 4.0 Visual Studio

Today I faced an issue while compiling the project with VS 2010. First I thought it was due to invalid snk file. But I confirmed it, that was not the problem. Later I found it was a permission issue. The solution is very simple, to resolve this error; open the following folder - “C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys”, and give your user (whatever account you use to log onto your computer and work on Visual Studio) full control. You can do it by Right click on the MachineKeys folder and select properties, and in the security tab, make sure the current user have full control.

How to change the startup page on a WP7 application

Posted by Anuraj on Saturday, December 28, 2013

.Net .Net 3.0 / 3.5 Silverlight Windows Phone

Sometimes you may need to change the startup page of Windows Phone application. By default it will be pointing to MainPage.xaml. You can modify the WMAppManifest.xml to change the default page. In the WMAppManifest.xml you will find the following.(You can get the WMAppManifest.xml by expanding the properties node in the Project Explorer window.) <Tasks> <DefaultTask Name ="_default" NavigationPage="MainPage.xaml"/> </Tasks>

Time ago function for C#

Posted by Anuraj on Thursday, December 19, 2013

.Net .Net 4.0 ASP.Net ASP.Net MVC Windows Forms

Here is a small C# snippet which will return a date time value in a readable way as facebook,twitter, stackoverflow and most of the forum sites, like 1 day ago,1 min ago etc. If you’re building a website, then the jQuery plugin Timeago is a pretty sweet way to do it (as long as you can stand webpages that auto update text). I have wrapped it in an extension method.
MVP
Subscribe
Archives


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