Editing Text Box Values

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.
 
M

Michael

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,277
Latest member
VytoKetoReview

Latest Threads

Top