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. Control to insert several numeber at once

Control to insert several numeber at once

Scheduled Pinned Locked Moved ASP.NET
question
9 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.
  • A Offline
    A Offline
    amina89
    wrote on last edited by
    #1

    Hi, I try to manage the absence of students in the exams, try to insert the id of students absent for each matter,to facilitate that to the user i want insert id_student at once (not one after one by textbox simple)is ther any control or method to do that? Thanks

    L 1 Reply Last reply
    0
    • A amina89

      Hi, I try to manage the absence of students in the exams, try to insert the id of students absent for each matter,to facilitate that to the user i want insert id_student at once (not one after one by textbox simple)is ther any control or method to do that? Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Yes, you can take listbox which shows you student id and name (combination, however in background it will give you ids) so you can select multiple items from listbox. On each matter, there is two checkbox (absent and present) so just select multiple student from listbox and mark absent or present checkbox and insert it into database. Hope this will help!

      Jinal Desai - LIVE Experience is mother of sage....

      A 2 Replies Last reply
      0
      • L Lost User

        Yes, you can take listbox which shows you student id and name (combination, however in background it will give you ids) so you can select multiple items from listbox. On each matter, there is two checkbox (absent and present) so just select multiple student from listbox and mark absent or present checkbox and insert it into database. Hope this will help!

        Jinal Desai - LIVE Experience is mother of sage....

        A Offline
        A Offline
        amina89
        wrote on last edited by
        #3

        Hi! I do not know if will be easy for the user ,because it is hundreds of students by by matter ,so i must show them all for and check those abcent. Thanks .

        1 Reply Last reply
        0
        • L Lost User

          Yes, you can take listbox which shows you student id and name (combination, however in background it will give you ids) so you can select multiple items from listbox. On each matter, there is two checkbox (absent and present) so just select multiple student from listbox and mark absent or present checkbox and insert it into database. Hope this will help!

          Jinal Desai - LIVE Experience is mother of sage....

          A Offline
          A Offline
          amina89
          wrote on last edited by
          #4

          Hi! How we can paginate a listbox? Thanks

          L 1 Reply Last reply
          0
          • A amina89

            Hi! How we can paginate a listbox? Thanks

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            You do not required to do pagination in listbox, it will automatically shows you scroll bar... The other best option it you do not want to use listbox is create your custom control. Because if you are using grid control then it will not remember your selection when you select options from multiple pages.... Hope this will help!

            Jinal Desai - LIVE Experience is mother of sage....

            A 1 Reply Last reply
            0
            • L Lost User

              You do not required to do pagination in listbox, it will automatically shows you scroll bar... The other best option it you do not want to use listbox is create your custom control. Because if you are using grid control then it will not remember your selection when you select options from multiple pages.... Hope this will help!

              Jinal Desai - LIVE Experience is mother of sage....

              A Offline
              A Offline
              amina89
              wrote on last edited by
              #6

              Thanks Jinal Desai - LIVE, creating user control seems complicated,I think using multiline textbox: the user will simply enter ID of abcent students line and in the end I enter that id in the database by a clic buton ,Waht do you Think? Thank you.

              L 1 Reply Last reply
              0
              • A amina89

                Thanks Jinal Desai - LIVE, creating user control seems complicated,I think using multiline textbox: the user will simply enter ID of abcent students line and in the end I enter that id in the database by a clic buton ,Waht do you Think? Thank you.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                ya that will be also nice idea. If you want to just take IDs then it is fine...

                Jinal Desai - LIVE Experience is mother of sage....

                A 1 Reply Last reply
                0
                • L Lost User

                  ya that will be also nice idea. If you want to just take IDs then it is fine...

                  Jinal Desai - LIVE Experience is mother of sage....

                  A Offline
                  A Offline
                  amina89
                  wrote on last edited by
                  #8

                  Hi, That's what I wanted ,it easier for the user but I did not know if there multiline textbox. I do not know how to check if those id are correct,to prevent the user from making mistakes and insert an id which does not exist in the table student. Thanks

                  L 1 Reply Last reply
                  0
                  • A amina89

                    Hi, That's what I wanted ,it easier for the user but I did not know if there multiline textbox. I do not know how to check if those id are correct,to prevent the user from making mistakes and insert an id which does not exist in the table student. Thanks

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    Of course there exists multiline textbox in asp.net You need to use normal textbox and just make it multiline textbox. You need to give rows, columns and textmode property according to your requirement. Try following....

                    <asp:TextBox ID="TextBox1" runat="server" Columns="50" Rows="5" TextMode="MultiLine"></asp:TextBox>

                    Hope this will help!

                    Jinal Desai - LIVE Experience is mother of sage....

                    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