When trying to debug in Visual Studio, you get the following error:
Breakpoint will not currently be hit. No symbols loaded for this document.
After some research, I came up with a solution: delete temporary ASP.NET files. This is how you do it:
- Locate your temporary ASP.NET files and delete them. They're probably located in C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files.
- Rebuild your project and attach to process and you should be fine - the breakpoint should be hit.
If you use window.open top open custom windows with JavaScript, you might encounter problems in Internet Explorer. Even though you can open new windows in other browsers, it doesn't work in IE.
The reason to this is it depends on how you name your JavaScript windows. IE doesn't allow much space here.
window.open takes three parameters - window url, window name and window properties. Make sure the window name doesn't contain other characters than a-z, A-Z and 0-9. No spaces, no hyphens, no aposthropes.
Here's a working example:
window.open('http://www.manutd.com/','ManUtdOfficialWebsite',
'left=0,top=0,width=1024,height=800,channelmode=no,
titlebar=yes,scrollbars=yes,toolbar=no,menubar=no,
resizable=yes,copyhistory=no,directories=no,status=yes');