Redirect in a another frame

Discussion in 'ASP .Net' started by Just D., Apr 9, 2005.

  1. Just D.

    Just D. Guest

    All,

    How can we redirect to another frame from the C# code? I usually use
    Response.Redirect("TargetPage.aspx") to redirect inside the current frame,
    but I don't know really how can I change the frame and open a required page
    in another frame to leave the active frame in its current condition and
    continue working in the second frame? Is it possible at all from the C#
    code? Or we need to write a JAVA script and call it from C# code?

    Thanks.
    Dmitri.
    Just D., Apr 9, 2005
    #1
    1. Advertising

  2. This needs to be done with client side JavaScript.
    You'll need to execute some code similar to this:

    FrameName.document.location='whatever.aspx';

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://SteveOrr.net




    "Just D." <> wrote in message
    news:lQG5e.34987$lz2.24876@fed1read07...
    > All,
    >
    > How can we redirect to another frame from the C# code? I usually use
    > Response.Redirect("TargetPage.aspx") to redirect inside the current frame,
    > but I don't know really how can I change the frame and open a required
    > page in another frame to leave the active frame in its current condition
    > and continue working in the second frame? Is it possible at all from the
    > C# code? Or we need to write a JAVA script and call it from C# code?
    >
    > Thanks.
    > Dmitri.
    >
    >
    Steve C. Orr [MVP, MCSD], Apr 11, 2005
    #2
    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. Søren M. Olesen
    Replies:
    0
    Views:
    576
    Søren M. Olesen
    Nov 13, 2003
  2. Microsoft
    Replies:
    3
    Views:
    695
    Hugo Wetterberg
    Oct 4, 2004
  3. Noozer
    Replies:
    0
    Views:
    2,995
    Noozer
    Oct 22, 2005
  4. Sal
    Replies:
    1
    Views:
    409
  5. Zalek Bloom
    Replies:
    1
    Views:
    212
    Aaron Bertrand - MVP
    Sep 23, 2003
Loading...

Share This Page