How to use popup window editing datagrid items?

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

  1. #1

    Default 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 click edit button, I want a window popup so I can edit the
    selected contact, so when I click this button, I find out which
    contact get selected, put it in session

    But the problem is: popup window shows up first before I put the
    object into the session

    Any ideas or suggestions?

    Thanks

    Joseph
    Joseph Yang Guest

  2. Similar Questions and Discussions

    1. Long list of items in my datagrid, editing is a pain!!
      Hello, I'm loading a datagrid from an XML file. I'm using datagrids edit functionality and its working great. My problem is that this list is...
    2. popup window from datagrid using asp.net
      I have a datagrid control that pulls images into a template column using the following code <asp:TemplateColumn HeaderText="Image">...
    3. Popup Window in a DataGrid
      Hi, Do u know how to make a HyperLinkColumn in a DataGrid that would pop up a new window with details of the row that the user clicked on. I...
    4. dataGrid - link - popup window
      I need to create a datagrid where the column headers (not the items) are links. When a user clicks on a link, it brings up a popup window. I guess...
    5. 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,...
  3. #2

    Default Re: How to use popup window editing datagrid items?

    Joseph,

    How about creating the popup window by calling it using the body tag as a
    server control?

    What this means is that your page would post back where you would set the
    session variable, then you would attach the javascript for the popup to the
    body tag using the onload event. This way the session would be set before
    the popup window is created.

    I have sample code on how to use the body tag as a server control on my web
    site, [url]www.aboutfortunate.com[/url], just search the code library for: "body tag
    used as server control" or something similar.

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche


    "Joseph Yang" <josephydy@yahoo.ca> wrote in message
    news:cfa920d.0308081618.361e1f9e@posting.google.co m...
    > Hello all,
    >
    > I have a datagrid bounded with an Arraylist containing contact
    > objects, and a edit button (<asp:imagebutton/>) in each row
    >
    > When I click edit button, I want a window popup so I can edit the
    > selected contact, so when I click this button, I find out which
    > contact get selected, put it in session
    >
    > But the problem is: popup window shows up first before I put the
    > object into the session
    >
    > Any ideas or suggestions?
    >
    > Thanks
    >
    > Joseph

    S. Justin Gengo 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