PM's Blog

Pramod Mohanan's notes about ASP.NET, MVC, C#, SQL, jQuery, Bootstrap


Global Error Handler in WCF

I recently read about the First Chance Exception and thought it was quite an interesting. While First Chance Expection helps during debug, for a production scenario we normally need to rely on catching errors using try catch. In a recent WCF project I tried implementing a GlobalErrorHandler and believe me it works like Magic. It […]

Dynamic resizing of Images

Front end users are free to upload images of any size, However for uniformity its often necessary to resize these images to a standard width and height but still maintaining the aspect ratio. The following function is what I use to to resize an image dynamically. The file thus returned can then be renamed and […]

PM's Blog © 2018