Just thought of sharing a some useful IIS App pool functions I wrote long back in C#. Requirement was to play around with IIS v5.0/6.0 and do all settings dynamically - Note : You must have administrator priveledge to perform all IIS actions. Namespace Required using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.DirectoryServices; using System.DirectoryServices.ActiveDirectory;...
Wednesday, April 29, 2009
April 29, 2009
When deploying ASP.NET applications to a production environment, you will most likely want to set the compilation debug attribute in web.config to false, as having debug set to true has some downsides: Compilation takes longer as batch optimizations are disabled Scripts and images from WebResources.axd will not be cached on the client Larger memory footprint Code will execute slower because of enabled debug paths ...
Tuesday, April 21, 2009
April 21, 2009
The ExpressionBuilder is still unknown to a lot of developers that haven’t experienced the sadistic pleasure of localizing a web application. It was introduce in ASP .NET 2.0 and allows you to bind values to control properties using declarative expressions. I learnt about the ExpressionBuilder when I was doing some research on localization best practices in .NET. The recommendation is to use the specialized ResourceExpressionBuilder that creates...
Monday, April 6, 2009
April 06, 2009
Why I used streams? First, the resizing method is thought for web applications. Second, using streams is more general solution that using file paths (you don’t want to save files to hard disc if you get them from file upload and save to database). Web application may get image files from following sources: files located on web server hard disc, file uploads, web services, BLOB field of database table. For first...