problem with getting info from page

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

I have a page which reads an article from the database it has 1 text box, 2
dropdown lists, and a longreat HTML text box. I load the information from
the database when the page is set to edit mode from a query string
action=edit, now when i click on the update button it does the update event,
the problem is, it still has the old unedited data in memory... and places
the old stuff back into the database (saw this when debugging) the SQL is
right and everything, just its not getting the new information off the
page... now the thing thats confuseing me, when i do action=new as the query
string, which creates a new article, when i click on the add button which
does an intert sql command, the data that was taken from new fields goes
through correctly. why would this be happening? why is my update sub still
getting the old data, but the new sub is getting new data (the new data one
starts off with blank fields then the user enters data into them) thanks
 
a little more information, this only happens with text boxes, the combo
boxes work fine with the edited information...
 
yeah, but how do you do it right? the same exact objects work in a diffrent
scenerio... same page and everything... just doesnt want to work when i have
text pre entered into the text boxes
 
does anyone know how to check to make sure the controls are sending data
back to the forms processor (code behind) correctly? thanks...
 
Back
Top