text field entry -- not updating string
Posted on 2007-11-25
A bit puzzling ... is that I have a text entry field :: TextBox.TestField
as the aspx page load, there is db read of existing field data as follows:
if (rdr != DBNull.Value)
TextBox_TestField.Text = (string)rdr;
this works fine.
I edit that field, i.e. add / amend the field content.
Obviously want to save the amended details -- and then run a sql update scripte on that field... the sql update script is ok -- but the problem is that the TextBox_TestField does seemed to have changed -- so when posting to sql it keeps original loaded data, yet on-screen *web-page) I see the updated value.
Scatching my head on this one ... should be obvious to solve, but perhaps I need more caffeine !
Any help with this would be much apprieated.