List/Grid

Author Archives: lokeshlal

Teeth Whitening Methods

If you have stained or discolored teeth you don’t want that to spoil your beautiful smile. That’s why there are a slew of options for teeth whitening these days to… Read more »

ASP.NET Ajax Javascript Problem

Last week I was working on a control, where i was required to load a control using Ajax ModalExtendender Pop up control and then there are various links on the… Read more »

Convert HTML color code to C# color

To convert a html color code to C# color code, .NET provides a class ColorTranslator. The syntax looks like this : System.Drawing.Color color = System.Drawing.ColorTranslator.FromHtml(“#FFFEFE”);

WCF service not able to connect error

Recently while working on one of the application, I was not able to connect to the wcf service after a number of times. On a single page, there was 5-6… Read more »

Nhibernate

In my current project, we decided to use Nhibernate. We had option of using Nhibernate or Entity Framework, However as suggested by our Architect we went for Nhibernate. No one… Read more »

Get The Top And Left Position Of HTML Element

I was struggling to get the Top position of nested Div tags. I also tried different possible ways and many articles on internet. Then I came across this one article… Read more »

Creating A Cache Class In C#

Creating cache classes are very often required. We are required to cache the records coming from Database or from service for faster retrieval. So here is a sample class that… Read more »

Custom Exception Class In C#

Handling exceptions are one of the major goal in any application development. And for this one should use custom exception class, as in, if in future one needs to do… Read more »

Execute An Executable From C#

To execute some external EXE from C#, you must use Process class. This class resides in System.Diagnostics Namespace. use following code to call an exe ProcessStartInfo startInfo = new ProcessStartInfo();… Read more »

Jagged arrays in C#

In a jagged array, every element is again an array in itself. So they can be of different size, like first element can be an array of length 5 and… Read more »