Results 1 to 4 of 4

Thread: Redirecting a frame useing asp and/or javascript [Resolved]

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2005
    Posts
    43

    Resolved Redirecting a frame useing asp and/or javascript [Resolved]

    I want to redirect an iframe (is called "main") in my page by useing a linkbutton in asp.net

    When I click on the linkbutton the fuction test is called
    Code:
    private void test(object sender, System.EventArgs e)
    		{
    			Response.Write("<script>window.parent.main.location = 'http://google.be'</script>");
    		}
    I also tryed

    Response.Write("<script>_parent.location.replace('http://google.be')</script>");
    Response.Write("<script>window.frames[“main”].location.replace('http://google.be')</script>");
    Response.Write("<script>window.frames[“main”].location.href='http://google.be'</script>");


    But non of the scripts seem to work
    Last edited by Draven Chen Zhen; Apr 15th, 2005 at 01:27 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width