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

Gridview Problem

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.
  • G Offline
    G Offline
    G K M
    wrote on last edited by
    #1

    I am adding rows at runtime in a gridview with a remove button in every row. On clicking the remove button, the row having that remove button will be deleted. Problem steps:- 1. I added 2 rows and then click a remove button of second row the second row will be deleted. 2. press f5 to refresh the page and it will give ERROR !!! I think on clicking refresh it will fire the last event again but in this case, button that caused last event have been deleted so button id will not found and error will be generated. Can somebody tell me the solution !!!

    Gaurav

    V 1 Reply Last reply
    0
    • G G K M

      I am adding rows at runtime in a gridview with a remove button in every row. On clicking the remove button, the row having that remove button will be deleted. Problem steps:- 1. I added 2 rows and then click a remove button of second row the second row will be deleted. 2. press f5 to refresh the page and it will give ERROR !!! I think on clicking refresh it will fire the last event again but in this case, button that caused last event have been deleted so button id will not found and error will be generated. Can somebody tell me the solution !!!

      Gaurav

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      G.K.M. wrote:

      ERROR

      What ERROR?

      Vasudevan Deepak Kumar Personal Homepage
      Tech Gossips
      A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

      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