refreshing main window after editing in popup

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

  1. #1

    Default refreshing main window after editing in popup

    Hi all

    i have 3 popup windows, in which i can add, edit and
    delete records from a table, now after user is done, i
    want to refresh main window, i am using
    window.opener.form1.btnRefresh.click(), and have handler
    in codebehind which refreshes dataset, this works. One and
    only problem is that this button is visible, and i dont
    want user to see this button

    i applied btnRefresh {display:none} , but it doesnt work
    my button is :
    <asp:Button CssClass="cssBtn" ID="btnDSCleaner"
    Runat="server"></asp:Button>

    are there any better ways of refreshing opener window,
    than this javascript tricks ?

    or is there any possibility of hiding this button (Visible
    attribute is not a solution, because then button would not
    be rendered at all), what i want is that there is a
    button, but not visible to user

    many thanks in adnvace
    Konrad R. Guest

  2. Similar Questions and Discussions

    1. DataBinding (Refreshing) a DataGrid within a Popup Window
      Hello, I'm trying to set up a modal (preferably) popup window to do asimple web service query. The popup window contains somecriteria fields, a...
    2. How to use popup window editing datagrid items?
      Hello all, I have a datagrid bounded with an Arraylist containing contact objects, and a edit button (<asp:imagebutton/>) in each row When I...
    3. Popup Request Hanging Main Window
      I want the user to have the capability to continue browsing the site as they are recieving a file attachment from a popup window, but any requests...
    4. Refreshing or Redirecting Opener Window
      Is it possible to redirect or refresh the contents of Page1 from within Page2 where Page2 was opened by Page1?
    5. Returning to main movie from popup-window
      HI! On my director movie there is a link which opens protected dir-file as a popup-window and from the popup-window is link which opens pdf-file...
  3. #2

    Default Re: refreshing main window after editing in popup

    See if
    window.opener.form1.submit();
    will work for you.

    George.


    "Konrad R." <krotuski@_no_sp.am_mion.elka.pw.edu.pl> wrote in message
    news:034101c35d21$a27f9500$a401280a@phx.gbl...
    > Hi all
    >
    > i have 3 popup windows, in which i can add, edit and
    > delete records from a table, now after user is done, i
    > want to refresh main window, i am using
    > window.opener.form1.btnRefresh.click(), and have handler
    > in codebehind which refreshes dataset, this works. One and
    > only problem is that this button is visible, and i dont
    > want user to see this button
    >
    > i applied btnRefresh {display:none} , but it doesnt work
    > my button is :
    > <asp:Button CssClass="cssBtn" ID="btnDSCleaner"
    > Runat="server"></asp:Button>
    >
    > are there any better ways of refreshing opener window,
    > than this javascript tricks ?
    >
    > or is there any possibility of hiding this button (Visible
    > attribute is not a solution, because then button would not
    > be rendered at all), what i want is that there is a
    > button, but not visible to user
    >
    > many thanks in adnvace

    George Ter-Saakov Guest

  4. #3

    Default Re: refreshing main window after editing in popup

    >-----Original Message-----
    >See if
    >window.opener.form1.submit();
    >will work for you.
    actually i am keeping my dataset in viewstate, and handler
    procedure that handles that button clicks, removes dataset
    from viewstate, so when queried next time, it will get
    fresh data from database, so it is not the solution in my
    case ( i could of course refresh dataset each round-trip,
    but think it would be not efficient)

    Konrad R. 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