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. Delete confirmation in User Control Data Grid

Delete confirmation in User Control Data Grid

Scheduled Pinned Locked Moved ASP.NET
helpjavascriptcss
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
    Sivaprasad C
    wrote on last edited by
    #1

    Hi, I am using a user control where i have a data grid control. I use this user control in a page. My problem is, I have a link button for delete and when i click this button I get the confirmation message but when I click ok the record is not deleted..(The Item_Command event is not geting fired) in the item_databount property I am adding the onClick attribute for the link button, and calling a javascript to give the confirmation message and in the item_command event i am writing the logic for delete. Same code is working fine for a datagrid control but itz not working when I make this datagrid as a usercontrol and draging it in a page.. Is there any property to be set for the user control Please help...

    Regards, Sivaprasad

    P 1 Reply Last reply
    0
    • S Sivaprasad C

      Hi, I am using a user control where i have a data grid control. I use this user control in a page. My problem is, I have a link button for delete and when i click this button I get the confirmation message but when I click ok the record is not deleted..(The Item_Command event is not geting fired) in the item_databount property I am adding the onClick attribute for the link button, and calling a javascript to give the confirmation message and in the item_command event i am writing the logic for delete. Same code is working fine for a datagrid control but itz not working when I make this datagrid as a usercontrol and draging it in a page.. Is there any property to be set for the user control Please help...

      Regards, Sivaprasad

      P Offline
      P Offline
      postmaster programmingknowledge com
      wrote on last edited by
      #2

      are you deleting from your database table? are you reloading the grid after each delete? There is an example at: http://www.programmingknowledge.com/simpleDataGrid.aspx[^] =postmaster

      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