Textbox help
-
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
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 )
-
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 )
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
-
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
Hi eric_tran, Do you populate the data into textbox in Page load event without checking Page.IsPostback? << >>
-
Hi eric_tran, Do you populate the data into textbox in Page load event without checking Page.IsPostback? << >>
-
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
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... << >>
-
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... << >>
-
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
You're welcome...Thanks nice day too! << >>