Tuesday, March 13, 2012

Target for aspx page

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?
Thanks,
Tinawhy not use javascript instead?

--
Saber S.
http://maghalat.com (Persian)
"T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
news:O1hXGsJjEHA.3320@.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?
> Thanks,
> Tina
It's currently a rule here not to use any javascript. as least we use it as
a last resort.
T

"Saber" <saber[-.-AT.--]maghalat.com> wrote in message
news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> why not use javascript instead?
>
> --
> Saber S.
> http://maghalat.com (Persian)
> "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> news:O1hXGsJjEHA.3320@.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?
> > Thanks,
> > Tina
You can't open a new window from the server. It's a client-side task that
can be accomplished only with a client-side script.

I am just wondering how many successful asp.net sites has the person who
wrote your rules made?

Eliyahu

"T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
news:O$veA1RjEHA.1184@.TK2MSFTNGP12.phx.gbl...
> It's currently a rule here not to use any javascript. as least we use it
as
> a last resort.
> T
> "Saber" <saber[-.-AT.--]maghalat.com> wrote in message
> news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> > why not use javascript instead?
> > --
> > Saber S.
> > http://maghalat.com (Persian)
> > "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> > news:O1hXGsJjEHA.3320@.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?
> > > Thanks,
> > > Tina
> >
That's not true. take an ordinary Hyperlink on any aspx page that links to
another aspx page. set it's target property to _blank and the new aspx page
will pop up in a new browser window. No client script was involved. I'm
just trying to do the same thing from a respnse.redirect that we all often
do from hyperlinks.
T

"Eliyahu Goldin" <removemeegoldin@.monarchmed.com> wrote in message
news:Ov7BNzZjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> You can't open a new window from the server. It's a client-side task that
> can be accomplished only with a client-side script.
> I am just wondering how many successful asp.net sites has the person who
> wrote your rules made?
> Eliyahu
> "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> news:O$veA1RjEHA.1184@.TK2MSFTNGP12.phx.gbl...
> > It's currently a rule here not to use any javascript. as least we use
it
> as
> > a last resort.
> > T
> > "Saber" <saber[-.-AT.--]maghalat.com> wrote in message
> > news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> > > why not use javascript instead?
> > > > > --
> > > Saber S.
> > > http://maghalat.com (Persian)
> > > "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> > > news:O1hXGsJjEHA.3320@.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?
> > > > Thanks,
> > > > Tina
> > > > > >
Admitting the mistake in the first statement, thank you, I am still
insisting that you can't make anything more-or-less meaningful in ASP.NET
without good deal of javascripting.

Eliyahu

"GaryB" <gb@.nospam.com> wrote in message
news:O$SZIO7jEHA.3456@.TK2MSFTNGP12.phx.gbl...
> That's not true. take an ordinary Hyperlink on any aspx page that links
to
> another aspx page. set it's target property to _blank and the new aspx
page
> will pop up in a new browser window. No client script was involved. I'm
> just trying to do the same thing from a respnse.redirect that we all often
> do from hyperlinks.
> T
>
> "Eliyahu Goldin" <removemeegoldin@.monarchmed.com> wrote in message
> news:Ov7BNzZjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> > You can't open a new window from the server. It's a client-side task
that
> > can be accomplished only with a client-side script.
> > I am just wondering how many successful asp.net sites has the person who
> > wrote your rules made?
> > Eliyahu
> > "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> > news:O$veA1RjEHA.1184@.TK2MSFTNGP12.phx.gbl...
> > > It's currently a rule here not to use any javascript. as least we use
> it
> > as
> > > a last resort.
> > > T
> > > > "Saber" <saber[-.-AT.--]maghalat.com> wrote in message
> > > news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
> > > > why not use javascript instead?
> > > > > > > > --
> > > > Saber S.
> > > > http://maghalat.com (Persian)
> > > > "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
> > > > news:O1hXGsJjEHA.3320@.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?
> > > > > Thanks,
> > > > > Tina
> > > > > > > > > > > >
a rule not to use javascript - I am very curious as to why ... and who made
the tech choice to go with .NET? obviously they had a great handle on the
workings of the framework ...

"T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
news:O$veA1RjEHA.1184@.TK2MSFTNGP12.phx.gbl...
> It's currently a rule here not to use any javascript. as least we use it
> as
> a last resort.
> T
> "Saber" <saber[-.-AT.--]maghalat.com> wrote in message
> news:ek3TiRKjEHA.3696@.TK2MSFTNGP15.phx.gbl...
>> why not use javascript instead?
>>
>>
>> --
>> Saber S.
>> http://maghalat.com (Persian)
>> "T. Seaburn" <tinamseaburn@.removespamexcite.com> wrote in message
>> news:O1hXGsJjEHA.3320@.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?
>> > Thanks,
>> > Tina
>>>>
>>

0 comments:

Post a Comment