ASP.net 2.0 Response.Redirect to "_blank"

I'm using a response.redirect from an imageButton and need to know how to Response.Redirect to a blank page. Anybody know a quick fix? Thanks, Chris.
jumpstart0321Asked:
Who is Participating?
 
sagirConnect With a Mentor Commented:
Hi,

Just use this inside the event handler:
Response.Write("<script language='javascript'>window.location='about:blank';</script>");

Sagi
0
 
jumpstart0321Author Commented:
Hmm, no can do... Honestly, I thought this would work; but it still opened it up in the same window. I tried it on both IE and firefox. :(
0
 
sagirCommented:
You want to open blank page in a new window?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
jumpstart0321Author Commented:
Yes, specifically using the response.redirect method in ASP.NET 2.0.
0
 
sagirCommented:
to open in a new window use:
Response.Write("<script language='javascript'>open('about:blank');</script>");
0
 
jumpstart0321Author Commented:
I'll give it a try first thing tomorrow. I'm too tired tonight :)
0
 
jumpstart0321Author Commented:
Ok, this would fix all my problems; If I could do this:
On_Button_Click{
response.Redirect("URL1")
response.Redirect("URL2")
}
I need 2 windows opened for each url. I played with the JavaScript, and any pop-up blocker is going to block the additional page. So, We should probably leave the Javascript out. Any ideas on how to fix this problem???
0
 
sagirCommented:
popup blockers are problamatic...

tghis is the only way I see for now:
Response.Write("<script language='javascript'>open('about:blank');</script>");
0
All Courses

From novice to tech pro — start learning today.