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. Multiple Data Entry

Multiple Data Entry

Scheduled Pinned Locked Moved ASP.NET
sales
22 Posts 5 Posters 3 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.
  • R rajkumar 3

    hello .netman searching in google every body know it dude... but u know we dont get exactly what we r looking in google...this is live for developers thats why we post req here .. and please dont suggest again google to any body coz even a small chield using google after searching in google only they come here..

    S Offline
    S Offline
    SamRST
    wrote on last edited by
    #7

    Its a great reply Raj. Some peoples think like tat.. Any how i didnt got the answer Yet.. Cheers..

    1 Reply Last reply
    0
    • _ _AK_

      You can create page where people can enter the data and then finally when they hit save you save the complete data in the database. Where exactly in this you are having the problem?

      Apurva Kaushal

      S Offline
      S Offline
      SamRST
      wrote on last edited by
      #8

      Yes .. Apurva.. i mean the same as u wrote.. Do you have any solution.. can u share me.. my mail id : samjoseph_p@hotmail.com cheers..

      _ 1 Reply Last reply
      0
      • S SamRST

        hi friends.. i want to enter multiple data's , like sales invoice. Does anybody have idea. Page should not postback. cheers..

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

        SamRST wrote:

        i want to enter multiple data's , like sales invoice. Does anybody have idea. Page should not postback.

        Read the forum rules[^], paying particular attention to no. 2. If you don't understand the basic principles of developing ASP.NET data entry applications, posting questions on a forum isn't going to help you. If this a commercial project, does your company know that you don't have the skills to complete it? The only advice I can give you is to go away, read a few books and and learn your craft.

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        1 Reply Last reply
        0
        • S SamRST

          Yes .. Apurva.. i mean the same as u wrote.. Do you have any solution.. can u share me.. my mail id : samjoseph_p@hotmail.com cheers..

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #10

          Look man if you are expecting anyone here to write the complete code for you then it will never be the case. What you can do is to start doing the same by yourself and the ask specific questions where you are stuck.

          Apurva Kaushal

          S 1 Reply Last reply
          0
          • _ _AK_

            Look man if you are expecting anyone here to write the complete code for you then it will never be the case. What you can do is to start doing the same by yourself and the ask specific questions where you are stuck.

            Apurva Kaushal

            S Offline
            S Offline
            SamRST
            wrote on last edited by
            #11

            i know that. but i tried a method , which will add the controls at runtime. but the problem is , the values in it is not getting in code behind , so tat i can save to database.. i used javascript to add the html controls....

            _ 1 Reply Last reply
            0
            • S SamRST

              i know that. but i tried a method , which will add the controls at runtime. but the problem is , the values in it is not getting in code behind , so tat i can save to database.. i used javascript to add the html controls....

              _ Offline
              _ Offline
              _AK_
              wrote on last edited by
              #12

              I can't say now what exactly would be the problem in this case unless I see the code. But suppose if you want to keep multiple records of the same type then what you can do is to create a datatable and insert the data dynamically to that datatable. You can store that datatable temporarily some where and at the final save take the data from the datatable and then put it in the database.

              Apurva Kaushal

              S 1 Reply Last reply
              0
              • _ _AK_

                I can't say now what exactly would be the problem in this case unless I see the code. But suppose if you want to keep multiple records of the same type then what you can do is to create a datatable and insert the data dynamically to that datatable. You can store that datatable temporarily some where and at the final save take the data from the datatable and then put it in the database.

                Apurva Kaushal

                S Offline
                S Offline
                SamRST
                wrote on last edited by
                #13

                S i know that method.. but y m trying is , v want to avoid the postback.. let me explain the thing.. i have a page for enter product code and Quantity, so 2 txtboxes. txtpcode1, txtqty1 the txtboxes increases when the user press add more and the name of txtboxes will b like txtpcode2 , txtqty2....... up to this wrking fine. but i hve to get the values from tat txtboxes in codebehind, so tat v can save it. hope now u got me..

                _ 1 Reply Last reply
                0
                • S SamRST

                  S i know that method.. but y m trying is , v want to avoid the postback.. let me explain the thing.. i have a page for enter product code and Quantity, so 2 txtboxes. txtpcode1, txtqty1 the txtboxes increases when the user press add more and the name of txtboxes will b like txtpcode2 , txtqty2....... up to this wrking fine. but i hve to get the values from tat txtboxes in codebehind, so tat v can save it. hope now u got me..

                  _ Offline
                  _ Offline
                  _AK_
                  wrote on last edited by
                  #14

                  SamRST wrote:

                  the txtboxes increases when the user press add more

                  SamRST wrote:

                  v want to avoid the postback.

                  That means you are using javascript to add the element in the web page. Am I right here? If so then you have to store the values of the textbox in some hidden field otherwise you will not be in a position to access the same on the server.

                  Apurva Kaushal

                  S 1 Reply Last reply
                  0
                  • _ _AK_

                    SamRST wrote:

                    the txtboxes increases when the user press add more

                    SamRST wrote:

                    v want to avoid the postback.

                    That means you are using javascript to add the element in the web page. Am I right here? If so then you have to store the values of the textbox in some hidden field otherwise you will not be in a position to access the same on the server.

                    Apurva Kaushal

                    S Offline
                    S Offline
                    SamRST
                    wrote on last edited by
                    #15

                    S m using javascript to add elements. but how can v store the values in hidden field, if d textbox increases to 20 or 30. And also , each row tere will b 2 txtboxes for pcode and qty.

                    _ 1 Reply Last reply
                    0
                    • S SamRST

                      S m using javascript to add elements. but how can v store the values in hidden field, if d textbox increases to 20 or 30. And also , each row tere will b 2 txtboxes for pcode and qty.

                      _ Offline
                      _ Offline
                      _AK_
                      wrote on last edited by
                      #16

                      You can store the values in hidden field by delimiting it with a semi colon or some thing else. What you need to do is to keep appending the values in hidden field when you are adding the controls.

                      Apurva Kaushal

                      S 1 Reply Last reply
                      0
                      • _ _AK_

                        You can store the values in hidden field by delimiting it with a semi colon or some thing else. What you need to do is to keep appending the values in hidden field when you are adding the controls.

                        Apurva Kaushal

                        S Offline
                        S Offline
                        SamRST
                        wrote on last edited by
                        #17

                        i got ur idea. but the thing is how v vl seperate each row for eg. pcodtxt qtytxt a102 10 B1025 20 c1000 12 35622 5 3698 25 As per ur suggestion: a102;10;B1025;20;c1000;12;35622;5;3698;25; here wich is pcode , which z qty. ???????

                        _ 1 Reply Last reply
                        0
                        • S SamRST

                          i got ur idea. but the thing is how v vl seperate each row for eg. pcodtxt qtytxt a102 10 B1025 20 c1000 12 35622 5 3698 25 As per ur suggestion: a102;10;B1025;20;c1000;12;35622;5;3698;25; here wich is pcode , which z qty. ???????

                          _ Offline
                          _ Offline
                          _AK_
                          wrote on last edited by
                          #18

                          SamRST wrote:

                          As per ur suggestion: a102;10;B1025;20;c1000;12;35622;5;3698;25; here wich is pcode , which z qty. ???????

                          Here you are separating the records with a semi colon similarly you can separate the fields with a comma. Then you can get the data like this: a,123;b,2345;c,2222; Hope this will be clarifying the issue.

                          Apurva Kaushal

                          S 1 Reply Last reply
                          0
                          • _ _AK_

                            SamRST wrote:

                            As per ur suggestion: a102;10;B1025;20;c1000;12;35622;5;3698;25; here wich is pcode , which z qty. ???????

                            Here you are separating the records with a semi colon similarly you can separate the fields with a comma. Then you can get the data like this: a,123;b,2345;c,2222; Hope this will be clarifying the issue.

                            Apurva Kaushal

                            S Offline
                            S Offline
                            SamRST
                            wrote on last edited by
                            #19

                            ok, its good. but i hve 1 more pblm.. dont hit me .. Okay... now times v added the rows.. vat will happen if v delete a row. mm m m m ......

                            S _ 2 Replies Last reply
                            0
                            • S SamRST

                              ok, its good. but i hve 1 more pblm.. dont hit me .. Okay... now times v added the rows.. vat will happen if v delete a row. mm m m m ......

                              S Offline
                              S Offline
                              SamRST
                              wrote on last edited by
                              #20

                              i hve a great thanks for ur replies... Thank u so much... exact pgrmer.. Okay..

                              _ 1 Reply Last reply
                              0
                              • S SamRST

                                ok, its good. but i hve 1 more pblm.. dont hit me .. Okay... now times v added the rows.. vat will happen if v delete a row. mm m m m ......

                                _ Offline
                                _ Offline
                                _AK_
                                wrote on last edited by
                                #21

                                What you need to do in that case is every time you are adding the control refresh the complete hidden field this you have to do in case of deletion also. What I mean to say here is when you are adding a new one then clear the hidden field and then add the complete set again by looping through. And this has to be repeated in the case of deletion.

                                Apurva Kaushal

                                1 Reply Last reply
                                0
                                • S SamRST

                                  i hve a great thanks for ur replies... Thank u so much... exact pgrmer.. Okay..

                                  _ Offline
                                  _ Offline
                                  _AK_
                                  wrote on last edited by
                                  #22

                                  Always welcome. :)

                                  Apurva Kaushal

                                  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