By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,900 Members | 1,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,900 IT Pros & Developers. It's quick & easy.

problem with getting info from page

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
a little more information, this only happens with text boxes, the combo
boxes work fine with the edited information...
"Brian Henry" <br******@adelphia.net> wrote in message
news:e5**************@TK2MSFTNGP10.phx.gbl...
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

Nov 17 '05 #2

P: n/a
It sounds like you are not passing the long textbox correctly...

"Brian Henry" <br******@adelphia.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
a little more information, this only happens with text boxes, the combo
boxes work fine with the edited information...
"Brian Henry" <br******@adelphia.net> wrote in message
news:e5**************@TK2MSFTNGP10.phx.gbl...
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


Nov 17 '05 #3

P: n/a
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

"zPaul" <~p****@phnip.com> wrote in message
news:OC**************@TK2MSFTNGP09.phx.gbl...
It sounds like you are not passing the long textbox correctly...

"Brian Henry" <br******@adelphia.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
a little more information, this only happens with text boxes, the combo
boxes work fine with the edited information...
"Brian Henry" <br******@adelphia.net> wrote in message
news:e5**************@TK2MSFTNGP10.phx.gbl...
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



Nov 17 '05 #4

P: n/a
does anyone know how to check to make sure the controls are sending data
back to the forms processor (code behind) correctly? thanks...
"Brian Henry" <br******@adelphia.net> wrote in message
news:e5**************@TK2MSFTNGP10.phx.gbl...
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

Nov 17 '05 #5

P: n/a
figured it out, it was a postback issue...
"Brian Henry" <br******@adelphia.net> wrote in message
news:e5**************@TK2MSFTNGP10.phx.gbl...
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

Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.