function SetTarget() {
document.forms[0].target = "_blank";
}
and serverside, i have this
Server.Transfer(new page url here, false);
this works, i open the new window successfully, all the code executes on the new page (I render some text)
The problem is, the text never shows, I can step through all the serverside code, everything works as i expect, but the text is never rendered and I get a blank page with the spinning icon in the tab. Anyone know why ?
misuk11
Participant
1608 Points
1280 Posts
server.transfer in a new window not working in IE8
May 11, 2012 09:03 AM|LINK
I want to use server.Transfer, but open in a new window. So On the button that executes the server side code i have this clientside code
<asp:Button ID="ButtonViewOutput" runat="server" Text="View Output"
Width="120px" onclick="ButtonViewOutput_Click" OnClientClick = "SetTarget();"/>
function SetTarget() {
document.forms[0].target = "_blank";
}
and serverside, i have this
Server.Transfer(new page url here, false);
this works, i open the new window successfully, all the code executes on the new page (I render some text)
The problem is, the text never shows, I can step through all the serverside code, everything works as i expect, but the text is never rendered and I get a blank page with the spinning icon in the tab. Anyone know why ?