I have a user control inside a web part. I am pre-populating a textbox in the Page_Load event in the code behind of the user control.
The value I am pre-populating is a value the user previously entered. The value is pulled from a sharepoint list. We want the user to be able to change this value if they need to.
No matter how many times I change the value in this field, it keeps the pre-populated value. It will not save the new value back to the list. The list item is being saved, but only with the pre-populated value. If I remove the line of code that pre-populates
the textbox from the page_load event, then I can change the field without issue.
Since I have little experience with using user controls, I am not sure what I am doing wrong. Should I be pre-populating this field in another event?
View Complete Post