Showing posts from March, 2012

Budget Airline - Tiger Airways in Sri Lanka

Tiger Airways has started a budget airline between Sri Lanka and Singapore. It is going to be cheap tickets compared to other airlines operated between Sri Lanka and Singapore. Useful Links

Free Photo Editing Tool - Paint.Net

I was searching for a free photo editing tool. I tried several tools and finally I selected  . This has several good features like Layers, Select Tools, History tool and some more. It does not have hundreds of features which are in commercial tool like Photoshop. But with this free tool we can do day today photo editing  requirements easily. This application has set of image editing tools which are very useful to general users. Also this is very light weight application and it loading very fast. I recommend this tool as a one of the best option as a replacement for Photoshop if we looking for free Photo Editing tool. Paint.Net can be downloaded here .

How to find when HTML content is loaded - without using onload in Javascript

When you use onload event, your script will be executed when the whole page is completely loaded. If your page has iframes, then onload will be executed after even iframe content also loaded. In some cases you may need to do something when the page html is loaded. Following sample demonstrate how to achieve this. <html xmlns=""> <head>     <title>Test Page</title> </head> <body onload="alert('this is page load event')">     <div>         <!-- Your page content here -->         <iframe id="frm" src="" width="400px" height="400px"></iframe>         <span id="lastCtrl">this is last text</span>     </div>     <script type="text/javascript">         //write your script here         //script white here will be called just after the page htm

Solution for : Cannot Create WEB-API controller in converted MVC4 Project

When you right click on your controller folder > create controller , then MVC4 WEB-API controller option should be available. If not do following to fix it. In Solution Explorer, right-click the project name and then select Unload Project. Then right-click the name again and select Edit ProjectName.csproj. Locate the ProjectTypeGuids element and replace {E53F8FEA-EAE0-44A6-8774-FFD645390401} with {E3E379DF-F4C6-4180-9B81-6769533ABE47}. Save the changes, close the project (.csproj) file you were editing, right-click the project, and then select Reload Project. This is applicable to the projects converted from MVC3 to MVC4

Manually Upgrade MVC3 Project to MVC4

To manually upgrade an existing ASP.NET MVC 3 application to version 4, do the following: In all Web.config files in the project (there is one in the root of the project, one in the Views folder, and one in the Views folder for each area in your project), replace every instance of the following text: System . Web . Mvc , Version = 3.0 . 0.0 System . Web . WebPages , Version = 1.0 . 0.0 System . Web . Helpers , Version = 1.0 . 0.0 System . Web . WebPages . Razor , Version = 1.0 . 0.0 with the following corresponding text: System . Web . Mvc , Version = 4.0 . 0.0 System . Web . WebPages , Version = 2.0 . 0.0 System . Web . Helpers , Version = 2.0 . 0.0 ,   System . Web . WebPages . Razor , Version = 2.0 . 0.0 , In the root Web.config file, update the   webPages:Version   element to "" and add a new PreserveLoginUrl   key that has the value "true": <appSettings> <add key = "webpages