Response.Redirect problem ????

  • Thread starter Thread starter Oney
  • Start date Start date
O

Oney

I send a popup to client then I redirect to the main page but the
popup doesn't raise. If I comments the Response.Redirect line the
popup is raised
How can I solve this problem???

thanks


Response.Write("<SCRIPT Language=Javascript> \n var
openInfoWindow=window.open('popup.aspx','wininfo','scrollbars=0,tollbar=0,menubar=0,statusbar=0,resizable=0,width=300,height=300');
\n </SCRIPT>");
Response.Redirect("main.aspx");
 
AFAIK you can't send content to the browser and redirect (in ASP classic you
had an error message when trying to do this, here it looks like
response.redirect automatically discards the current output).

Show rather the popup when main.aspx loads (body onload for example)...

Patrice
 
Back
Top