Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   force aspx page in new viewer? (http://www.velocityreviews.com/forums/t85664-force-aspx-page-in-new-viewer.html)

T. Seaburn 08-28-2004 04:38 PM

force aspx page in new viewer?
 
I have an aspx page that is always invoked by Response.Redirect calls from
other pages. I want my aspx page to always display in a new browser window.
Since the Response.Redirect calls from the other pages can't inoke _blank as
a target value, is there any way I can ensure that my aspx page always
displays in a new browser window without using javascript?
Thanks,
Tina




Alvin Bruney [MVP] 08-28-2004 08:32 PM

Re: force aspx page in new viewer?
 
instead of a _blank for the name, pass a random value
window.open(page,System.Text.RegularExpression.Reg ex.Replace(DateTime.Now,"\\D",string.emptye)...

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"T. Seaburn" <tinamseaburn@removespamexcite.com> wrote in message
news:%23FJ5n1RjEHA.1344@TK2MSFTNGP11.phx.gbl...
>I have an aspx page that is always invoked by Response.Redirect calls from
> other pages. I want my aspx page to always display in a new browser
> window.
> Since the Response.Redirect calls from the other pages can't inoke _blank
> as
> a target value, is there any way I can ensure that my aspx page always
> displays in a new browser window without using javascript?
> Thanks,
> Tina
>
>
>




Lau Lei Cheong 08-30-2004 02:32 AM

Re: force aspx page in new viewer?
 
You can't open a new browser window without using client-side scripts.

"T. Seaburn" <tinamseaburn@removespamexcite.com> 秎ン
news:%23FJ5n1RjEHA.1344@TK2MSFTNGP11.phx.gbl い级糶...
> I have an aspx page that is always invoked by Response.Redirect calls from
> other pages. I want my aspx page to always display in a new browser

window.
> Since the Response.Redirect calls from the other pages can't inoke _blank

as
> a target value, is there any way I can ensure that my aspx page always
> displays in a new browser window without using javascript?
> Thanks,
> Tina
>
>
>




GaryB 08-31-2004 11:39 PM

Re: force aspx page in new viewer?
 
Tha's not true. put an ordinary hyperlink on any aspx page and set it's
target to _blank. execute that hyperlink and the new aspx page will display
in a new window - no client script involved. I do it all the time.
T

"Lau Lei Cheong" <leu_lc@yehoo.com.hk> wrote in message
news:ODfb%23jjjEHA.2500@TK2MSFTNGP09.phx.gbl...
> You can't open a new browser window without using client-side scripts.
>
> "T. Seaburn" <tinamseaburn@removespamexcite.com> 秎ン
> news:%23FJ5n1RjEHA.1344@TK2MSFTNGP11.phx.gbl い级糶...
> > I have an aspx page that is always invoked by Response.Redirect calls

from
> > other pages. I want my aspx page to always display in a new browser

> window.
> > Since the Response.Redirect calls from the other pages can't inoke

_blank
> as
> > a target value, is there any way I can ensure that my aspx page always
> > displays in a new browser window without using javascript?
> > Thanks,
> > Tina
> >
> >
> >

>
>




Lau Lei Cheong 09-01-2004 09:56 AM

Re: force aspx page in new viewer?
 
Seems that there isn't any click() method associated with HyperLink control,
how would you "execute" it without using client-side script?

Btw, the client-side functionalities of ASP.NET are in fact implemented by
client-side scripts such as the __doPostBack() function.

"GaryB" <gb@nospam.com> 秎ン news:OjnE6O7jEHA.1404@TK2MSFTNGP09.phx.gbl い
级糶...
> Tha's not true. put an ordinary hyperlink on any aspx page and set it's
> target to _blank. execute that hyperlink and the new aspx page will

display
> in a new window - no client script involved. I do it all the time.
> T
>
> "Lau Lei Cheong" <leu_lc@yehoo.com.hk> wrote in message
> news:ODfb%23jjjEHA.2500@TK2MSFTNGP09.phx.gbl...
> > You can't open a new browser window without using client-side scripts.
> >
> > "T. Seaburn" <tinamseaburn@removespamexcite.com> 秎ン
> > news:%23FJ5n1RjEHA.1344@TK2MSFTNGP11.phx.gbl い级糶...
> > > I have an aspx page that is always invoked by Response.Redirect calls

> from
> > > other pages. I want my aspx page to always display in a new browser

> > window.
> > > Since the Response.Redirect calls from the other pages can't inoke

> _blank
> > as
> > > a target value, is there any way I can ensure that my aspx page always
> > > displays in a new browser window without using javascript?
> > > Thanks,
> > > Tina
> > >
> > >
> > >

> >
> >

>
>




GaryB 09-01-2004 03:41 PM

Re: force aspx page in new viewer?
 
the user simply clicks on a hyperlink - no need for an event. Point is that
you don't need javascript to pop up a new window so if it can be done by a
hyperlink (without javascript) the notion was that there must be some way to
do it from code (without javascript)

"Lau Lei Cheong" <leu_lc@yehoo.com.hk> wrote in message
news:OJRl7kAkEHA.3944@tk2msftngp13.phx.gbl...
> Seems that there isn't any click() method associated with HyperLink

control,
> how would you "execute" it without using client-side script?
>
> Btw, the client-side functionalities of ASP.NET are in fact implemented by
> client-side scripts such as the __doPostBack() function.
>
> "GaryB" <gb@nospam.com> 秎ン news:OjnE6O7jEHA.1404@TK2MSFTNGP09.phx.gbl


> 级糶...
> > Tha's not true. put an ordinary hyperlink on any aspx page and set it's
> > target to _blank. execute that hyperlink and the new aspx page will

> display
> > in a new window - no client script involved. I do it all the time.
> > T
> >
> > "Lau Lei Cheong" <leu_lc@yehoo.com.hk> wrote in message
> > news:ODfb%23jjjEHA.2500@TK2MSFTNGP09.phx.gbl...
> > > You can't open a new browser window without using client-side scripts.
> > >
> > > "T. Seaburn" <tinamseaburn@removespamexcite.com> 秎ン
> > > news:%23FJ5n1RjEHA.1344@TK2MSFTNGP11.phx.gbl い级糶...
> > > > I have an aspx page that is always invoked by Response.Redirect

calls
> > from
> > > > other pages. I want my aspx page to always display in a new browser
> > > window.
> > > > Since the Response.Redirect calls from the other pages can't inoke

> > _blank
> > > as
> > > > a target value, is there any way I can ensure that my aspx page

always
> > > > displays in a new browser window without using javascript?
> > > > Thanks,
> > > > Tina
> > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>




=?Utf-8?B?d2hpZ2dpbnM=?= 09-02-2004 02:05 AM

RE: force aspx page in new viewer?
 
I posted this in your other question

Response.Write("<script
type='text/javascript'>detailedresults=window.open('DetailedR esults.aspx');</script>")

"T. Seaburn" wrote:

> I have an aspx page that is always invoked by Response.Redirect calls from
> other pages. I want my aspx page to always display in a new browser window.
> Since the Response.Redirect calls from the other pages can't inoke _blank as
> a target value, is there any way I can ensure that my aspx page always
> displays in a new browser window without using javascript?
> Thanks,
> Tina
>
>
>
>



All times are GMT. The time now is 10:47 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57