Tag Archives: Tips and Tricks

Use BitmapScalingMode to ensure your rendering of Image is perfect

By | July 20, 2011

If you have worked with WPF 3.5 before, you know that declaring a normal image in your code will render your image quite fine. But If you do the same thing in .NET 4.0 or even you convert your existing application from previous version to .NET 4.0, all the images that were rendering quite Ok in your previous… Read More »

Get time of Code Execution Using StopWatch

By | July 5, 2011

During Development of the application/product or after deployment of the application/product there might be a situation where you want to find out the the how much time is taken by you code to execute ? Is it too much slow ? Answer to this problem is make use of StopWatch class of System.Diagnostics namespace which is usefull to… Read More »

Ordering data in LINQ Queries by more than one column

By | June 13, 2011

In this post I am going to show how to do ordering when you require to order data by using the multiple columns. By using .Orderby(x=>x.Columnname) in the LINQ query we can easily order data of the source collection. So most of new developer make use of the same function two time .Orderby(x=>x.Columnname).Orderby(x=>x.Columnname) and thinks that will do… Read More »

Raising Server side event from JavaScript in ASP.NET (Tweaking the existing bits)

By | May 19, 2011

Well, knowing internal structure of an ASP.NET event system can always be an element of fun and interests. Recently I came across to a requirement to generate a server side event on a page directly from Javascript. There are a couple of approaches available with the existing models (like ICallbackEventHandler etc) but these will put additional pressure to… Read More »

Using Session with in HTTPHandler

By | May 7, 2011

In this tip I am going to discuss how you can use Session with in your custom HTTPHandler.  By default if you try to read or write anything related with Session, you will get an NullReferenceException. If you want to plug Session with in your HttpHandler you have to implement the  marker Interface (Interfaces with no methods are… Read More »

Important counter sets for monitoring ASP.NET performance using Perfmon Tool

By | April 28, 2011

For Any ASP.NET application, monitoring performance is an important job. Performance Monitor tool having some nice features that helps us to monitor ASP.NET Application performance in a better way.In this Tips I  discuss four important counter sets that are very useful in monitoring ASP.NET performance.

How to use Application Bar in Windows Phone 7 Application ?

By | April 24, 2011

If you are working with Windows Phone 7, the first thing that you should have noticed is the very own Application bar. Application Bar is present in most of the applications that you use in your Windows Phone 7. This is basically a standard Toolbar with a menu associated with it which allows you to enumerate the commonly… Read More »