Editing Text Box Values

  • Thread starter Thread starter brian shannon
  • Start date Start date
B

brian shannon

I am filling text boxes from a data reader. That works
fine. If I edit a text box to a different value and
click a save button the orginal value that was edited is
being used in the SQL string. I verified this through
debugging.

Does anyone know of a reason why the original values are
being perserved? The text boxes are not set to read only.

Thanks.
 
probably because you aren't checking for a page.ispostback when you are
binding the data from the datareader to textboxes.

it would be something like this in page_load

if not page.ispostback then
'do everything to fill the text boxes originally
end if
 
Back
Top