Redirect/Transfer to a new _blank page

M

mz

Using the GridView control and a Command button in the GridViewRow I'm
trying to "redirect" to a popup page. I currently have to do it using
Javascript and I'm wondering if there is a more elegent way do do it using
the Redirect or Transfer comman.

Thanks
 
P

Paul Henderson

Using the GridView control and a Command button in the GridViewRow I'm
trying to "redirect" to a popup page. I currently have to do it using
Javascript and I'm wondering if there is a more elegent way do do it using
the Redirect or Transfer comman.

Transfer(...) will only cause the server to switch which page it's
executing; the result will still display in whatever browser window the
asp page happens to be opening in. Similar for Redirect(...) - this
will instruct the browser to redirect, but it will probably still
switch page in the same window. Hence, Javascript is probably the
easiest way to do it
 

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

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top