Friday, 3 November 2017

Blog moved to

Wednesday, 8 June 2016

How to use Linear Gradient in IE9

IE9 doesn't have support Linear Gradients so if you want to use something like Linear Gradient, You can follow this trick.

background: #fff;
background: -moz-linear-gradient(#fff, #000);
background: -webkit-linear-gradient(#fff, #000);
background: -o-linear-gradient(#fff, #000);
background: -ms-linear-gradient(#fff, #000);/*For IE10*/
background: linear-gradient(#fff, #000);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ffffff', endColorstr='#000000');/*For IE7-8-9*/ 

This trick simply does same as linear gradient, it's only feature of IE. 

How to open same .cshtml file side by side in Visual studio 2015

If you are using Visual studio 2015 you will see Visual studio have option for new window for .CS file but not for .Cshtml file.  Didn't this thing look strange to you.

Here is how to fix it.

HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0_Config\Languages\Language Services\HTMLX\Single Code Window Only

Go to Regedit and find this location in left side. Set the value of "Single Code Window Only" to 0 and it will work. 

In my case it's revert to 1 after few days. I didn't get it how but you can bookmark this so in future you don't need to spent time on browsing.

Happy Coding !