Response.Redirect problem ????

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");
 
P

Patrice

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top