Cannot use a leading .. to exit above the top directory

Solution:

You can use use ~/img/myImage.png instead of ../img/myImage.png to avoid this error in ASP.NET pages.

Advertisements

Remove blank lines from code in Visual Studio

1. Click Ctrl+H (quick replace)
2. Tick “Use Regular Expressions”
3. In Find specify “^$\n
4. In Replace box delete everything.
5. Click “Replace All”
All Blank lines will be deleted. 🙂
^ Means Beginning of line 
$ Means End of line