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. Textbox help

Textbox help

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
8 Posts 3 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.
  • E Offline
    E Offline
    eric_tran
    wrote on last edited by
    #1

    Gday, everyone, I have a problem that I really need your help After I populate data into a textbox, I modify it, then save, but It still remembers old values. How to get modified value? Thanks in advance

    eric

    C 1 Reply Last reply
    0
    • E eric_tran

      Gday, everyone, I have a problem that I really need your help After I populate data into a textbox, I modify it, then save, but It still remembers old values. How to get modified value? Thanks in advance

      eric

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Everyone else in the world sees the new values when they post back. So, there's a problem with your approach, post some code so we can see what it is.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      E 1 Reply Last reply
      0
      • C Christian Graus

        Everyone else in the world sees the new values when they post back. So, there's a problem with your approach, post some code so we can see what it is.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        E Offline
        E Offline
        eric_tran
        wrote on last edited by
        #3

        After I populate data from BusinessLogicLayer into a textbox, then I modify the text in textbox, click on submit button, the data is saved into the database is the old value, not the modified one. Both textbox and submit button are web server control. Please help

        eric

        E 1 Reply Last reply
        0
        • E eric_tran

          After I populate data from BusinessLogicLayer into a textbox, then I modify the text in textbox, click on submit button, the data is saved into the database is the old value, not the modified one. Both textbox and submit button are web server control. Please help

          eric

          E Offline
          E Offline
          enjoycrack
          wrote on last edited by
          #4

          Hi eric_tran, Do you populate the data into textbox in Page load event without checking Page.IsPostback? << >>

          8x Solutions Ltd

          E 1 Reply Last reply
          0
          • E enjoycrack

            Hi eric_tran, Do you populate the data into textbox in Page load event without checking Page.IsPostback? << >>

            8x Solutions Ltd

            E Offline
            E Offline
            eric_tran
            wrote on last edited by
            #5

            Ah, yes, I populate data into textbox in Page load event, then save modified text in Button click event. So what should I do? Thanks for your reply

            eric

            E 1 Reply Last reply
            0
            • E eric_tran

              Ah, yes, I populate data into textbox in Page load event, then save modified text in Button click event. So what should I do? Thanks for your reply

              eric

              E Offline
              E Offline
              enjoycrack
              wrote on last edited by
              #6

              just populate data when Page.IsPoskback = False...You just debug it to verify...Without that block, everytime user click on the button, the old data is populated again into textbox ==> that's why you always get old data... << >>

              8x Solutions Ltd

              E 1 Reply Last reply
              0
              • E enjoycrack

                just populate data when Page.IsPoskback = False...You just debug it to verify...Without that block, everytime user click on the button, the old data is populated again into textbox ==> that's why you always get old data... << >>

                8x Solutions Ltd

                E Offline
                E Offline
                eric_tran
                wrote on last edited by
                #7

                Hello enjoycrack, That's fantastic. You are right. Thank you very much. I got it. I spent 5 hours on fixing this bug. Have a nice day.

                eric

                E 1 Reply Last reply
                0
                • E eric_tran

                  Hello enjoycrack, That's fantastic. You are right. Thank you very much. I got it. I spent 5 hours on fixing this bug. Have a nice day.

                  eric

                  E Offline
                  E Offline
                  enjoycrack
                  wrote on last edited by
                  #8

                  You're welcome...Thanks nice day too! << >>

                  8x Solutions Ltd

                  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