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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sagirCommented:
Hi,

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

Sagi
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.