Redirect to target _parent from codebehind

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Redirect to target _parent from codebehind

    Hello!

    I am using a frameset and vb codebehind to work with a database.
    When pressing a delete button in one of my frames, I want the hole application to be refreshed, or at least another of my frames to be refreshed. I don't really understand how to do this.

    I tried with response.redirect("Frameset1.htm") but I can't set target frame _parent for this command.
    I regular <a href="Frameset1.htm" target="_parent">test</a> would solve my problem, but I want to do this from codebehind and not by letting the user click more than the delete button.

    How could I solve this issue?

    Regards Magnus
    MB Guest

  2. Similar Questions and Discussions

    1. redirect to guest if first redirect is doesnt work for a user
      Hi all, I was wondering if anyone could help me solve a problem Once a user hits a certain webpage ..I try to redirect them to another using...
    2. Why does VS.NET use codebehind?
      I'm reading the Essential ASP.NET book by Fritz onion and he says that when VS.NET creates a new .aspx page for you is uses the codebehind attribute...
    3. Change _parent
      I have an image that is normally inside a movie clip, but it is possible to drag it outside the frame of the movie clip. Is it possible to also...
    4. src Versus codebehind
      hello friend, while developing an application, i encountered a subtle point. for a aspx page, what is the difference between src property and...
    5. Redirect to New Browser Window like Response.Redirect
      That worked just fine for me as long as you put that open statement on one line rather than 2. "michel" <michely3k@yahoo.com> wrote in...
  3. #2

    Default Re: Redirect to target _parent from codebehind

    Hi,

    Use Page RegisterStartupscript to embed javascript that change other
    frame src.

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  4. #3

    Default RE: Redirect to target _parent from codebehind

    Hi Magnus,

    I think you only need call some client side JScript to the refresh the
    frames. For example to refresh the whole page (all Frames):

    window.parent.location="...."

    To refresh a particular frame:

    window.parent.frames("FrameID").location="..."

    Luke

    "Microsoft Security Announcement: Have you installed the patch for
    Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
    you to review the information at the following link regarding Microsoft
    Security Bulletin MS03-026
    [url]http://www.microsoft.com/security/security_bulletins/ms03-026.asp[/url] and/or to
    visit Windows Update at [url]http://windowsupdate.microsoft.com[/url] to install the
    patch. Running the SCAN program from the Windows Update site will help to
    insure you are current with all security patches, not just MS03-026."

    MSFT Guest

  5. #4

    Default Re: Redirect to target _parent from codebehind

    Thank you!

    Unfortunately I'm not sop familiar with asp.net environment so I wonder how
    to call this from a vb codebehind function.

    Regards Magnus

    "MSFT" <lukezhan@online.microsoft.com> wrote in message
    news:rexDuV7XDHA.2108@cpmsftngxa06.phx.gbl...
    > Hi Magnus,
    >
    > I think you only need call some client side JScript to the refresh the
    > frames. For example to refresh the whole page (all Frames):
    >
    > window.parent.location="...."
    >
    > To refresh a particular frame:
    >
    > window.parent.frames("FrameID").location="..."
    >
    > Luke
    >
    > "Microsoft Security Announcement: Have you installed the patch for
    > Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
    > you to review the information at the following link regarding Microsoft
    > Security Bulletin MS03-026
    > [url]http://www.microsoft.com/security/security_bulletins/ms03-026.asp[/url] and/or
    to
    > visit Windows Update at [url]http://windowsupdate.microsoft.com[/url] to install the
    > patch. Running the SCAN program from the Windows Update site will help to
    > insure you are current with all security patches, not just MS03-026."
    >

    MB Guest

Posting Permissions

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

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139