List/Grid

Author Archives: lokeshlal

window.postMessage, Cross Domain Iframe communication

window.postMessage and receiveMessage are part of HTML5 and can be used for communication between two Iframes, belong to two different domains. To send a message to parent window from Iframe… Read more »

WCF net.tcp listener adapter stops responding Issue

Referring to this post net.tcp listener adapter stops responding. To solve this, I added enable port sharing on server by adding portSharingEnabled attribute <bindings> <netTcpBinding> <binding name=”tcpBinding” portSharingEnabled=”true” … Increase… Read more »

Google Voice Search

Google added voice search feature on google search page. As of now they only support US English. But soon they might start supporting various languages. As mentioned on Google Useful… Read more »

SQL Optimization Tips

Use views and stored procedures instead of heavy-duty queries. This can reduce network traffic, because your client will send to server only stored procedure or view name (perhaps with some… Read more »

How To Hide Facebook News Ticker

This is new thing that facebook added and shows you everything your friends are doing. To me, this is very irritating. So decided to get rid of this ticker. As… Read more »

Upload a photo on Facebook and Tag it using C#

To upload a photo on Facebook, we need to issue a HTTP POST request to https://graph.facebook.com/[USERID]/photos url. and to tag a user we need to issue a normal HTTP GET… Read more »

Create Tiff Image from multiple images – C#

Create Tiff Image from multiple images – C#

The .NET framework provides very good support for generating and manipulating bitmap images. We can transform images from one form to another and .NET can also be use to generate… Read more »

Generate GUID In SQL Server

T0 Generate a new GUID in sql server, we can use NEWID() SELECT NEWID() GUID are always helpful. They can be used to generate global temporary tables. As a replacement… Read more »

Exception Handling In Javascript

There are various ways to handle exception in JavaScript. 1. try..catch..finally block function performDivision(x,y) { try { var z = x/y; return z; } catch(ex) { //raise error ex.message }… Read more »

Tipsy – JQuery tooltip plugin

Tipsy is a very simple to use, modify JQuery plugin to display tool tip on any html element. The default behavior of this plugin is to pull the whatever text… Read more »