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

repeater items

Scheduled Pinned Locked Moved ASP.NET
question
6 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.
  • T Offline
    T Offline
    test 09
    wrote on last edited by
    #1

    hoe to get repeater generated it for all items used to delete rows of repeater??

    B 1 Reply Last reply
    0
    • T test 09

      hoe to get repeater generated it for all items used to delete rows of repeater??

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      Your question is not clear.Can you explain bit more?

      Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

      T 1 Reply Last reply
      0
      • B Brij

        Your question is not clear.Can you explain bit more?

        Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

        T Offline
        T Offline
        test 09
        wrote on last edited by
        #3

        i need to delete rows in repeater.. how to do that... as each row has unique id in repeater control how do i know the id of each row...

        B 1 Reply Last reply
        0
        • T test 09

          i need to delete rows in repeater.. how to do that... as each row has unique id in repeater control how do i know the id of each row...

          B Offline
          B Offline
          Brij
          wrote on last edited by
          #4

          So what is the problem,Just have an link button in repeater, and on itemcommand event delete that item then again bind the repeater. For examle have alook to the link Click here

          Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

          T 1 Reply Last reply
          0
          • B Brij

            So what is the problem,Just have an link button in repeater, and on itemcommand event delete that item then again bind the repeater. For examle have alook to the link Click here

            Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

            T Offline
            T Offline
            test 09
            wrote on last edited by
            #5

            two columns descriptionname and description and dont hav any id..

            // ignore syntax
            sqlcmd.xommandtext="delete from descriptiontable where descriptionname=@descriptionname and description=@description"

            if two rows has same values then both will be deleted i want to delete only one row... the values entered are from dynamic textboxes in repeater control

            B 1 Reply Last reply
            0
            • T test 09

              two columns descriptionname and description and dont hav any id..

              // ignore syntax
              sqlcmd.xommandtext="delete from descriptiontable where descriptionname=@descriptionname and description=@description"

              if two rows has same values then both will be deleted i want to delete only one row... the values entered are from dynamic textboxes in repeater control

              B Offline
              B Offline
              Brij
              wrote on last edited by
              #6

              You can genrate your own id, like some identity column in DB and put a check while deleting.You can put the id in some hidden field in repeater if you require.

              Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

              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