specify window specs in Response.Redirect

Discussion in 'ASP .Net Web Controls' started by susie, Dec 19, 2003.

  1. susie

    susie Guest

    I need to specify the following for the redirected page

    target=blank
    window position
    taskbar (do not show)

    How do I specify the above information in
    Response.Redirect?


    Is there a working sample?

    Thanks a lot.
     
    susie, Dec 19, 2003
    #1
    1. Advertising

  2. susie

    vMike Guest

    Try this
    dim strurl as string = "http://yahoo.com"

    dim strCommand as string = "vlarge1=window.open('" & strurl &
    "','vlarge','resizable=no,scrollbars=no,status=no,toolbar=no,height=450,widt
    h=575,left=150,top=100');" & vbCrLf & "vlarge1.focus();" & vbCrLf

    response.write("<script>" & vbCrLf)
    response.write(strCommand & vbCrLf)
    response.write("<" & chr(47) & "script>")


    "susie" <> wrote in message
    news:0c0501c3c646$21ff0f80$...
    > I need to specify the following for the redirected page
    >
    > target=blank
    > window position
    > taskbar (do not show)
    >
    > How do I specify the above information in
    > Response.Redirect?
    >
    >
    > Is there a working sample?
    >
    > Thanks a lot.
     
    vMike, Dec 19, 2003
    #2
    1. Advertising

  3. susie

    susie Guest

    Thank you very much! This is exactly what I needed.

    Have a nice holiday!
    >-----Original Message-----
    >Try this
    >dim strurl as string = "http://yahoo.com"
    >
    >dim strCommand as string = "vlarge1=window.open('" &

    strurl &
    >"','vlarge','resizable=no,scrollbars=no,status=no,toolbar

    =no,height=450,widt
    >h=575,left=150,top=100');" & vbCrLf & "vlarge1.focus();"

    & vbCrLf
    >
    >response.write("<script>" & vbCrLf)
    >response.write(strCommand & vbCrLf)
    >response.write("<" & chr(47) & "script>")
    >
    >
    >"susie" <> wrote in

    message
    >news:0c0501c3c646$21ff0f80$...
    >> I need to specify the following for the redirected page
    >>
    >> target=blank
    >> window position
    >> taskbar (do not show)
    >>
    >> How do I specify the above information in
    >> Response.Redirect?
    >>
    >>
    >> Is there a working sample?
    >>
    >> Thanks a lot.

    >
    >
    >.
    >
     
    susie, Dec 19, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles A. Lackman
    Replies:
    2
    Views:
    8,069
    Charles A. Lackman
    Jan 11, 2006
  2. Matthew Wieder

    Response.Write and Response.Redirect

    Matthew Wieder, Jul 17, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    747
    Kevin Spencer
    Jul 17, 2003
  3. =?Utf-8?B?VHJveQ==?=

    Response.redirect does not redirect from .aspx page

    =?Utf-8?B?VHJveQ==?=, Oct 18, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    5,329
    Srowe1975
    Oct 15, 2008
  4. Sal
    Replies:
    1
    Views:
    906
  5. Ron Howard
    Replies:
    2
    Views:
    558
    Ron Howard
    Aug 11, 2004
Loading...

Share This Page