.Net Application: How to use tokens

Have you come across an application or library which accepts the %token{format} input and based on token and format, the application calculates the value and uses it. You might wonder how easy it is to accept the token and format for your custom application? Here is the ready made code which helps your application define… Read More »

Bitmap.Save() Invalid Parameter Used

In my previous post of Bitmap.save(): A generic error occurred in GDI+. I explained about the lock which the Bitmap object creates on the file. Now if by mistake we dispose the object before saving the image, there is no image to be saved and the error “Invalid Parameter Used” will be encountered. You can… Read More »

Bitmap.save(): A generic error occurred in GDI+

Try the following code You will get the above mentioned error:A generic error occurred in GDI+. This problem occurs because until the bitmap object is disposed, it creates a lock on the underlying image file. So you can save the newly generated file with different name but not overwrite the file because of lock. Now… Read More »

ASP .Net Datagrid Itemcommand Event is not fired

Check it out for event handler. It is quite possible that if you cut and paste the datagrid from one place to another, it will loose all the event handlers which were previously defined. If you think that event handler is defined correctly, check out how the datasource is bound to the datagrid. Your code… Read More »

Parser Error Message: Access is denied: ‘Ajax’

Description: An error occurred during the processing of a configuration file required to service this request.Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Access is denied: ‘Ajax’. Source Error: Line 196: Line 197: Line 198: Line 199: Line 200: Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 198 Assembly Load Trace:… Read More »

ASP .NET 1.x 2.0 application switcher

I recently installed Microsoft Visual Studio Express Edition. It also installed .NET framework 2.0 in my machine. When I wanted to switch to the different version, I used “ASP .NET” tab in the IIS MMC > Default Website > Properties. After few days suddenly the tab “ASP .NET” disappeared. Now there was no way I… Read More »