Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Ajax PopupControlExtender in GridView

Ajax PopupControlExtender in GridView

Scheduled Pinned Locked Moved ASP.NET
helpquestiondesign
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    klaydze
    wrote on last edited by
    #1

    Hi All, I just want to get your opinion on what is the best approach in my gridview.

    Sample Gridview Data.

    | | UserID | First Name | Last Name | Last Loggedin|

    |imgBtn | PHUserId1 | Jim | Carey | 1/16/2011 6:00AM |


    |imgBtn | PHUserId2 | Andres | Boni | 1/27/2011 5:56 PM |


    |imgBtn | PHUserId3 | George | Jungle | 1/2/2011 4:01 AM |

    What i want to do is, in the 1st column of the GridView(grdUserList) control once i click the ImageButton control inside ItemTemplate of the gridview a popup(Ajax PopupExtender) will appear. The popup contains GridView (grdHistory) control inside of it which are the logged history of the user you select. Actually, the design and the output is already done. I get a popup everytime i click the ImageButton on the 1st column of the GridView(grdUserList) control. But the problem now is, how do i refresh the GridView(grdHistory) control in my popup everytime i select different user in my GridView(grdUserlist). I place Click event on the ImageButton but it fires only once. The next click on the ImageButton will no longer fires the Click event. I dont what to used the Ajax ModalPopupExtender for the reason of, i dont what the user to close a popup evertime they click the ImageButton in the 1st row. Thanks in advance

    if(you type your code here) { Messagebox.Show("You help me a lot!"); } else { You help me = null; }

    A 1 Reply Last reply
    0
    • K klaydze

      Hi All, I just want to get your opinion on what is the best approach in my gridview.

      Sample Gridview Data.

      | | UserID | First Name | Last Name | Last Loggedin|

      |imgBtn | PHUserId1 | Jim | Carey | 1/16/2011 6:00AM |


      |imgBtn | PHUserId2 | Andres | Boni | 1/27/2011 5:56 PM |


      |imgBtn | PHUserId3 | George | Jungle | 1/2/2011 4:01 AM |

      What i want to do is, in the 1st column of the GridView(grdUserList) control once i click the ImageButton control inside ItemTemplate of the gridview a popup(Ajax PopupExtender) will appear. The popup contains GridView (grdHistory) control inside of it which are the logged history of the user you select. Actually, the design and the output is already done. I get a popup everytime i click the ImageButton on the 1st column of the GridView(grdUserList) control. But the problem now is, how do i refresh the GridView(grdHistory) control in my popup everytime i select different user in my GridView(grdUserlist). I place Click event on the ImageButton but it fires only once. The next click on the ImageButton will no longer fires the Click event. I dont what to used the Ajax ModalPopupExtender for the reason of, i dont what the user to close a popup evertime they click the ImageButton in the 1st row. Thanks in advance

      if(you type your code here) { Messagebox.Show("You help me a lot!"); } else { You help me = null; }

      A Offline
      A Offline
      Ali Al Omairi Abu AlHassan
      wrote on last edited by
      #2

      did you handle the Commit event?

      Help people,so poeple can help you.

      K 1 Reply Last reply
      0
      • A Ali Al Omairi Abu AlHassan

        did you handle the Commit event?

        Help people,so poeple can help you.

        K Offline
        K Offline
        klaydze
        wrote on last edited by
        #3

        Hi, Thanks for the reply. Can you provide a little code on that? Because i don't know how

        Commit

        will affect the refreshing of GridView control. If I'm not mistaken

        Commit

        have one parameter that accept string type. Thanks for providing a little code. :) Thanks

        if(you type your code here) { Messagebox.Show("You help me a lot!"); } else { You help me = null; }

        A 1 Reply Last reply
        0
        • K klaydze

          Hi, Thanks for the reply. Can you provide a little code on that? Because i don't know how

          Commit

          will affect the refreshing of GridView control. If I'm not mistaken

          Commit

          have one parameter that accept string type. Thanks for providing a little code. :) Thanks

          if(you type your code here) { Messagebox.Show("You help me a lot!"); } else { You help me = null; }

          A Offline
          A Offline
          Ali Al Omairi Abu AlHassan
          wrote on last edited by
          #4

          OK,Sir; Send me your code.

          Help people,so poeple can help you.

          K 1 Reply Last reply
          0
          • A Ali Al Omairi Abu AlHassan

            OK,Sir; Send me your code.

            Help people,so poeple can help you.

            K Offline
            K Offline
            klaydze
            wrote on last edited by
            #5

            Hi Ali, I already sent the code. Thanks for the help. Cheers!

            if(you type your code here) { Messagebox.Show("You help me a lot!"); } else { You help me = null; }

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups