Something I come across ever now and again which Im not sure why it happens
If I take a simple line of code in a buttons on-click event:
textbox1.Text = textbox2.Text;
when the button is clicked the text in textbox1 disappears and textbox2 is not updated. Both textboxs have EnableViewState set to true.
If textbox1 is null when the page loads this happens, however if it has been populated from a database on the page load then textbox2 will take on the text in textbox1.
Cant seem to find a decent explanation online, can anyone comment?
Thankyou
textbox2be updated when you're assigning the text oftextbox2totextbox1?textbox1.Textequal to the text oftextbox2which is empty. I assume you want it the other way around?