I am trying to get a window to open when someone clicks a link. The link is created using a Response.Write. It works if I use something like this:
Code:
Response.Write("<a href='http://fallenscribe.com' target='_blank'>Test</a><br />");
But as soon as I put a file in there (what I am really trying to open in a new window), it wont work. Here is what I am doing for that:
Code:
Response.Write("<a href='file:///" + location + "OutputReports\\xmlTrans" + tick + ".html' target='_blank'>Open the Business Report in a new window</a>");
I have turned off Pop Up blocker, done everything I can think of, but it just doesn't open. I get no errors as to why, either. Anyone have an idea as to why the second one won't open but the first will?
edit: I can also Right Click -> Copy URL and paste it into a new tab and have it work that way as well. So the href is correct, it just doesn't open when you click it...