Professional Web Applications Themes

How to use popup window editing datagrid items? - ASP.NET General

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

  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. #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" <josephydyyahoo.ca> wrote in message
    news:cfa920d.0308081618.361e1f9eposting.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

Similar Threads

  1. Long list of items in my datagrid, editing is a pain!!
    By David Lozzi in forum ASP.NET Data Grid Control
    Replies: 4
    Last Post: November 9th, 01:45 AM
  2. popup window from datagrid using asp.net
    By csgraham74 in forum ASP.NET Data Grid Control
    Replies: 5
    Last Post: June 2nd, 08:17 PM
  3. Popup Window in a DataGrid
    By adish11 in forum ASP.NET Data Grid Control
    Replies: 2
    Last Post: August 7th, 08:53 AM
  4. popup window link in a datagrid
    By LIN in forum ASP.NET General
    Replies: 2
    Last Post: August 8th, 12:34 PM
  5. refreshing main window after editing in popup
    By Konrad R. in forum ASP.NET General
    Replies: 2
    Last Post: August 7th, 10:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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