What does do?

This answer was posted several years ago and now the question really should be should you even consider using the X-UA-Compatible tag on your site? with the changes Microsoft has made to its browsers (more on those below). Depending upon what Microsoft browsers you support you may not need to continue using the X-UA-Compatible tag. If you need to support IE9 … Read more

What does do?

This answer was posted several years ago and now the question really should be should you even consider using the X-UA-Compatible tag on your site? with the changes Microsoft has made to its browsers (more on those below). Depending upon what Microsoft browsers you support you may not need to continue using the X-UA-Compatible tag. If you need to support IE9 … Read more

Is it possible to sandbox JavaScript running in the browser?

I’m wondering if it’s possible to sandbox JavaScript running in the browser to prevent access to features that are normally available to JavaScript code running in an HTML page. For example, let’s say I want to provide a JavaScript API for end users to let them define event handlers to be run when “interesting events” … Read more

Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net

These path components are shortcuts with specific meanings: . means the current path level (so if you’re on index.aspx and you reference ./style.css then the latter would have to be in the same folder as the former) .. means one path level up (so if you’re on /somefolder/index.aspx and you reference ../style.css then the latter would have to be in the parent folder of someFolder) / means the root … Read more

Do I need Content-Type: application/octet-stream for file download?

No. The content-type should be whatever it is known to be, if you know it. application/octet-stream is defined as “arbitrary binary data” in RFC 2046, and there’s a definite overlap here of it being appropriate for entities whose sole intended purpose is to be saved to disk, and from that point on be outside of … Read more