Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Refresh Page

    I have an access db backend with a frontend in asp. The user is able to add, edit, view, and delete members from the db.

    I have a page that lists all members (members.asp), only showing a few fields for each, i.e. ID, fname, lname, city/town, etc. If you click on one of these records, it brings up the detailed info for that member (memberinfo.asp). On the memberinfo.asp page you can click a button to open the form in edit mode (memberinfoedit.asp), which opens in the same window as memberinfo.asp. Right now if you click the edit button and edit the member, it works correctly and saves to the db.

    What I would like it to also do is refresh the page with the list of members and close the window I am editing the member in. I get the window to close fine from the body onload by calling a javascript function of the memberinfoedit page, but when I try and submit the opener page it does not submit the list of all members page. I guess this is because the list of members page is not the opener of the memberinfoedit page. The opener page is the memberinfo.asp page.

    Is there a way I can refresh the member.asp page from the memberinfoedit.asp page? Can I use something besides the window.opener.submit function from javascript to submit the members.asp page from the memberinfoedit.asp page?

    This is the process of how the pages are opening right now if the user wants to edit:

    1. Members.asp (list of members)

    2. Click on a member and it opens the detailed info page MemberInfo.asp.

    3. On MemberInfo.asp, there is an Edit button. Whenthis is clicked, it opens MemberInfoEdit.asp and closes MemberInfo.asp.

    I would like to refresh Members.asp. Since this is not the page that opened MemberInfoEdit.asp, it was opened from MemberInfo.asp, can I refresh the previous page?

    Thanks!



    TLMM Guest

  2. Similar Questions and Discussions

    1. how can i Refresh my page????
      Please help me I am using mac os x and Dreamweaver MX 2004, But i make some page but I am not abble to see them normal, please help me....I will...
    2. Auto Page Refresh
      Hi, I have a web page which contains content that is frequently updated: http://www.iwsec.co.uk
    3. Page Refresh
      OK, I have created a user control that contains a dropdown for office locations. Here is the code.... Private Sub Page_Load(ByVal sender As...
    4. page refresh?
      I have the submit and action page. On the submit form, I have several text boxes for user to enter information. On the action page, I have the...
    5. refresh a page every so often
      I want to refresh the text of a label box, say, every second. Is there a way to maintain some kind of persistent connection to the server and the...
  3. #2

    Default Re: Refresh Page

    window.opener.reload()

    ? The user might have to confirm a dialog if they got there by post. If
    so, maybe you could allow the page to accept both get and post, and from the
    new window use

    window.opener.location.href="page.asp?<params here>";

    --
    [url]http://www.aspfaq.com/[/url]
    (Reverse address to reply.)




    "TLMM" <tlmm@wwwnews.com> wrote in message
    news:ORQPzC2YEHA.1152@TK2MSFTNGP09.phx.gbl...
    I have an access db backend with a frontend in asp. The user is able to
    add, edit, view, and delete members from the db.

    I have a page that lists all members (members.asp), only showing a few
    fields for each, i.e. ID, fname, lname, city/town, etc. If you click on one
    of these records, it brings up the detailed info for that member
    (memberinfo.asp). On the memberinfo.asp page you can click a button to open
    the form in edit mode (memberinfoedit.asp), which opens in the same window
    as memberinfo.asp. Right now if you click the edit button and edit the
    member, it works correctly and saves to the db.

    What I would like it to also do is refresh the page with the list of members
    and close the window I am editing the member in. I get the window to close
    fine from the body onload by calling a javascript function of the
    memberinfoedit page, but when I try and submit the opener page it does not
    submit the list of all members page. I guess this is because the list of
    members page is not the opener of the memberinfoedit page. The opener page
    is the memberinfo.asp page.

    Is there a way I can refresh the member.asp page from the memberinfoedit.asp
    page? Can I use something besides the window.opener.submit function from
    javascript to submit the members.asp page from the memberinfoedit.asp page?

    This is the process of how the pages are opening right now if the user wants
    to edit:

    1. Members.asp (list of members)

    2. Click on a member and it opens the detailed info page MemberInfo.asp.

    3. On MemberInfo.asp, there is an Edit button. Whenthis is clicked, it
    opens MemberInfoEdit.asp and closes MemberInfo.asp.

    I would like to refresh Members.asp. Since this is not the page that opened
    MemberInfoEdit.asp, it was opened from MemberInfo.asp, can I refresh the
    previous page?

    Thanks!




    Aaron [SQL Server MVP] Guest

  4. #3

    Default Re: Refresh Page

    "TLMM" <tlmm@wwwnews.com> wrote in message
    news:ORQPzC2YEHA.1152@TK2MSFTNGP09.phx.gbl...

    I have an access db backend with a frontend in asp. The user is able to
    add, edit, view, and delete members from the db.

    I have a page that lists all members (members.asp), only showing a few
    fields for each, i.e. ID, fname, lname, city/town, etc. If you click on one
    of these records, it brings up the detailed info for that member
    (memberinfo.asp). On the memberinfo.asp page you can click a button to open
    the form in edit mode (memberinfoedit.asp), which opens in the same window
    as memberinfo.asp. Right now if you click the edit button and edit the
    member, it works correctly and saves to the db.

    [snip]

    Have you considered having just one ASP page instead of three?

    The list of members is displayed by default; clicking on a member reloads
    the same page passing that member's ID and displaying their details;
    clicking "edit" reloads the same page but in "edit" mode; finally, after
    clicking "update" to submit the changes, the list is redisplayed.


    McKirahan Guest

  5. #4

    Default Refresh Page

    Response.write "<script>"
    Response.write "self.close();"
    Response.write "self.close();"
    Response.write "opener.location.href ='member.asp'"
    Response.write "</script>"

    Would this work for u?
    dave
    >-----Original Message-----
    >I have an access db backend with a frontend in asp. The
    user is able to add, edit, view, and delete members from
    the db.
    >
    >I have a page that lists all members (members.asp), only
    showing a few fields for each, i.e. ID, fname, lname,
    city/town, etc. If you click on one of these records, it
    brings up the detailed info for that member
    (memberinfo.asp). On the memberinfo.asp page you can
    click a button to open the form in edit mode
    (memberinfoedit.asp), which opens in the same window as
    memberinfo.asp. Right now if you click the edit button
    and edit the member, it works correctly and saves to the
    db.
    >
    >What I would like it to also do is refresh the page with
    the list of members and close the window I am editing the
    member in. I get the window to close fine from the body
    onload by calling a javascript function of the
    memberinfoedit page, but when I try and submit the opener
    page it does not submit the list of all members page. I
    guess this is because the list of members page is not the
    opener of the memberinfoedit page. The opener page is
    the memberinfo.asp page.
    >
    >Is there a way I can refresh the member.asp page from
    the memberinfoedit.asp page? Can I use something besides
    the window.opener.submit function from javascript to
    submit the members.asp page from the memberinfoedit.asp
    page?
    >
    >This is the process of how the pages are opening right
    now if the user wants to edit:
    >
    >1. Members.asp (list of members)
    >
    >2. Click on a member and it opens the detailed info page
    MemberInfo.asp.
    >
    >3. On MemberInfo.asp, there is an Edit button. Whenthis
    is clicked, it opens MemberInfoEdit.asp and closes
    MemberInfo.asp.
    >
    >I would like to refresh Members.asp. Since this is not
    the page that opened MemberInfoEdit.asp, it was opened
    from MemberInfo.asp, can I refresh the previous page?
    >
    >Thanks!
    >
    >
    >
    dave 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