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. Datalist Control

Datalist Control

Scheduled Pinned Locked Moved ASP.NET
helpdatabasequestion
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.
  • C Offline
    C Offline
    chintan1979
    wrote on last edited by
    #1

    Hi Guys, I want to display all the cities from a SQL table so that the user can select multiple cities as 'Prefferd Area'. On submitting the form all the cities selected should go to a table where the selection is stored userwise. I have achived the displaying of this thing by using Datalist control. Even I was able to show the selection made by the user earlier, if he clicks on the option again. ( I have entered dummy data in the table manually). My problem is how will I come to know, which cities are selected by the USER on submit click as I am not getting the individual check boxes on submit click event. Can any one help me out??? Chintan

    T 1 Reply Last reply
    0
    • C chintan1979

      Hi Guys, I want to display all the cities from a SQL table so that the user can select multiple cities as 'Prefferd Area'. On submitting the form all the cities selected should go to a table where the selection is stored userwise. I have achived the displaying of this thing by using Datalist control. Even I was able to show the selection made by the user earlier, if he clicks on the option again. ( I have entered dummy data in the table manually). My problem is how will I come to know, which cities are selected by the USER on submit click as I am not getting the individual check boxes on submit click event. Can any one help me out??? Chintan

      T Offline
      T Offline
      Tarakeshwar
      wrote on last edited by
      #2

      Why not just use a listbox or a tree? You can get a list of items selected in a listbox. You could also display it as a tree, and checking the necessary nodes, will get saved for you. Just thought that this would be a easier method for you. Tarakeshwar CCIE Q(Routing and Switching), MCSE Security

      C 1 Reply Last reply
      0
      • T Tarakeshwar

        Why not just use a listbox or a tree? You can get a list of items selected in a listbox. You could also display it as a tree, and checking the necessary nodes, will get saved for you. Just thought that this would be a easier method for you. Tarakeshwar CCIE Q(Routing and Switching), MCSE Security

        C Offline
        C Offline
        chintan1979
        wrote on last edited by
        #3

        Hi, Thanks for replaying so fast. I have already used the listbox control with multiple selection allowed. But my client doesn't want this. He wants check box selections. How do I do it??? Chintan

        T 1 Reply Last reply
        0
        • C chintan1979

          Hi, Thanks for replaying so fast. I have already used the listbox control with multiple selection allowed. But my client doesn't want this. He wants check box selections. How do I do it??? Chintan

          T Offline
          T Offline
          Tarakeshwar
          wrote on last edited by
          #4

          Use the Tree Control, with the tree control u can have check boxes. The person can select what he wants, and those that are selected can be saved Tarakeshwar CCIE Q(Routing and Switching), MCSE Security

          C 1 Reply Last reply
          0
          • T Tarakeshwar

            Use the Tree Control, with the tree control u can have check boxes. The person can select what he wants, and those that are selected can be saved Tarakeshwar CCIE Q(Routing and Switching), MCSE Security

            C Offline
            C Offline
            chintan1979
            wrote on last edited by
            #5

            Hi, Thanks a lot... I have done this successfully this DataList Web Control and really it's easy to use. I was not knowing how to do it... It's done Thanks a lot... Chintan

            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