aspx_professional thread: 1st timer: problem in retrieving the value of Text control in .NET Web form
I run into a problem of retrieving the value of Text control in one of the
web forms. Any suggestions would be appreciated.
Here is the situation:
The page loads the data from database to each text fields on the form
first. The user then update the data, and click a Save button.
Supposedly, it will take the new value and save it back to database. For
some reasons, the codes in the Save_Click method are unable to retrieve
the new value. The following is one of the C# statements:
arParams[0] = new SqlParameter("@CustomerID",txtCustomerID.Text);
The ReadOnly property of the control was set to "false", and there is no
change to that property in the codes.
Notes:
1. The text controls are not binding to any data source column, but
programmatically assigned the value instead.
2. The user was transferred from the other page with a QueryString which
is used as data retrieving criteria by this page.
Thanks in advance for your help.
Michael J.