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. General Programming
  3. C#
  4. Bind txt Box to database [modified]

Bind txt Box to database [modified]

Scheduled Pinned Locked Moved C#
databasehelp
14 Posts 6 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.
  • P Programm3r

    Huh ? :omg: :wtf:

    Manish79 wrote:

    Everye element have diffrent Values for that I am using 150 TxtBox

    And all these elements must be shown to the user?? Maybe make use of a different control instead of TextBoxes... Kind regards,

    The only programmers that are better C# programmers, are those who look like this -> :bob:

    :java: Programm3r My Blog: ^_^

    M Offline
    M Offline
    Manish79
    wrote on last edited by
    #5

    Dear Can u pls suggest me how i can do with other

    P 1 Reply Last reply
    0
    • M Manish79

      Dear Thanks for ur reply. I have one Table Name Element.in this I Have to insert 32element.Everye element have diffrent Values for that I am using 150 TxtBox. Thanks

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #6

      Your question is not clear at all. Are the lengths of the table column 32 and the textbox 150 characters? Is the width of the text box 150px? (If so, you can restict the number of characters to 32 to help. As for binding, try googling the phrase "c# textbox binding", you get lots of results.

      M 1 Reply Last reply
      0
      • M Manish79

        Dear Can u pls suggest me how i can do with other

        P Offline
        P Offline
        Programm3r
        wrote on last edited by
        #7

        Like the other member are saying ... it is very hard to help. We aren't exactly sure what you are trying to accomplish. You must try and explain your problem better. Regards,

        The only programmers that are better C# programmers, are those who look like this -> :bob:

        :java: Programm3r My Blog: ^_^

        1 Reply Last reply
        0
        • K Keith Barrow

          Your question is not clear at all. Are the lengths of the table column 32 and the textbox 150 characters? Is the width of the text box 150px? (If so, you can restict the number of characters to 32 to help. As for binding, try googling the phrase "c# textbox binding", you get lots of results.

          M Offline
          M Offline
          Manish79
          wrote on last edited by
          #8

          Dear Kaafb, Thanks for ur reply, I have one Table name Element.In this I want to insert 32Rows with 6 coloumns.For that I am using Textboxes.

          P OriginalGriffO 2 Replies Last reply
          0
          • M Manish79

            Dear Kaafb, Thanks for ur reply, I have one Table name Element.In this I want to insert 32Rows with 6 coloumns.For that I am using Textboxes.

            P Offline
            P Offline
            Programm3r
            wrote on last edited by
            #9

            I think you must have a look at the following tutorials:* The C# Station ADO.NET Tutorial[^]

            • DataView Binding to TextBox[^]
              Regards,

            The only programmers that are better C# programmers, are those who look like this -> :bob:

            :java: Programm3r My Blog: ^_^

            1 Reply Last reply
            0
            • M Manish79

              Dear Kaafb, Thanks for ur reply, I have one Table name Element.In this I want to insert 32Rows with 6 coloumns.For that I am using Textboxes.

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #10

              The last time I looked, 32 * 6 wasn't 150. Why 150 textboxes (we ask again)?

              No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              M 1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                The last time I looked, 32 * 6 wasn't 150. Why 150 textboxes (we ask again)?

                No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

                M Offline
                M Offline
                Manish79
                wrote on last edited by
                #11

                yah it's32*6=192 Text Boxes

                K OriginalGriffO 2 Replies Last reply
                0
                • M Manish79

                  yah it's32*6=192 Text Boxes

                  K Offline
                  K Offline
                  Keith Barrow
                  wrote on last edited by
                  #12

                  This is far too many for the user to comprehend or fill in reliably in one go. At the very least I suggest you create a wizard to enter each row at a time and ensure they add 32 rows somehow. Better yet, it sounds like an interface re-design might be appropiate.

                  1 Reply Last reply
                  0
                  • M Manish79

                    yah it's32*6=192 Text Boxes

                    OriginalGriffO Offline
                    OriginalGriffO Offline
                    OriginalGriff
                    wrote on last edited by
                    #13

                    As keefb says, that is way too many. Plus, what happens when suddenly you need to up it from 32 to 40 rows? Or add another column? Just what are you going to call these textboxes, that makes it easy to work out what is going on? Think again. When did you see a database example that used textboxes for each row? What do database examples use?

                    No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

                    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                    1 Reply Last reply
                    0
                    • M Manish79

                      Dear ALL, I have one table with 32 Element in this I want to insert the data for that I am using 150 Txt Box. Can u pls help me to Bind this data with database. Thanks in Advance

                      modified on Tuesday, September 22, 2009 8:35 AM

                      R Offline
                      R Offline
                      Robert_Pan
                      wrote on last edited by
                      #14

                      Total of 720 controls on the page, and I need the same functionality

                      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