Update problem in asp.net

hi…
I am designing a website.In this,I needs to retrive values from database in a textbox(suppose I retrived value abc in textbox named textboxNewName) and after editing (changing the value to xyz) ,I need to update database with these new value on update button click.But when I am retriving the value in update button click using
Code:

dim newValue as string=textboxNewName.text

then Instead of new value it is giving old value(abc).This thing i confirmed by debuging the code and also updatequery is running succussfully as it’s return value is 1.

please suggest me what I am doing wrong. <snip/>

The problem is your are probably retrieving the value from the database and inserting it into the textbox from the page load method and you did not wrap it in a

if (!Page.IsPostBack)