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. Every time I click a button in mymodal popup to add new row in Gridview it Disappears

Every time I click a button in mymodal popup to add new row in Gridview it Disappears

Scheduled Pinned Locked Moved ASP.NET
help
2 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.
  • S Offline
    S Offline
    sheringkapoting
    wrote on last edited by
    #1

    I have a Modal popup in my .aspx Page which opens on Click of a Button (btnNew). Modal popup Contains a Gridview with a blankraow added by Default, and a Button (btnAddNew), What I want is I want to add a new row on (btnAddnew) click.. which does so, but the Probem is Modal popup get disappeared. And have to click (btnNew) to pop it ip again,which shows the new row added in Gridview.. I want the Modal popup to remin same untill I save the records. plss Help :(

    Sheringkapoting...

    J 1 Reply Last reply
    0
    • S sheringkapoting

      I have a Modal popup in my .aspx Page which opens on Click of a Button (btnNew). Modal popup Contains a Gridview with a blankraow added by Default, and a Button (btnAddNew), What I want is I want to add a new row on (btnAddnew) click.. which does so, but the Probem is Modal popup get disappeared. And have to click (btnNew) to pop it ip again,which shows the new row added in Gridview.. I want the Modal popup to remin same untill I save the records. plss Help :(

      Sheringkapoting...

      J Offline
      J Offline
      jkirkerx
      wrote on last edited by
      #2

      The ajax model popup extender has a habit of resetting back to hidden during postback. You have to modelPopup.show() the extender in your button function to keep it in block mode, to keep it visible.

      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