problem with getting info from page | | |
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 | | | | re: problem with getting info from page
a little more information, this only happens with text boxes, the combo
boxes work fine with the edited information...
"Brian Henry" <brianiup@adelphia.net> wrote in message
news:e5xX0tZmDHA.2432@TK2MSFTNGP10.phx.gbl...[color=blue]
> I have a page which reads an article from the database it has 1 text box,[/color]
2[color=blue]
> 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[/color]
event,[color=blue]
> 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[/color]
query[color=blue]
> 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[/color]
one[color=blue]
> starts off with blank fields then the user enters data into them) thanks
>
>[/color] | | | | re: problem with getting info from page
It sounds like you are not passing the long textbox correctly...
"Brian Henry" <brianiup@adelphia.net> wrote in message
news:%23uvfGvZmDHA.1884@TK2MSFTNGP09.phx.gbl...[color=blue]
> a little more information, this only happens with text boxes, the combo
> boxes work fine with the edited information...
>
>
> "Brian Henry" <brianiup@adelphia.net> wrote in message
> news:e5xX0tZmDHA.2432@TK2MSFTNGP10.phx.gbl...[color=green]
> > I have a page which reads an article from the database it has 1 text[/color][/color]
box,[color=blue]
> 2[color=green]
> > dropdown lists, and a longreat HTML text box. I load the information[/color][/color]
from[color=blue][color=green]
> > 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[/color]
> event,[color=green]
> > the problem is, it still has the old unedited data in memory... and[/color][/color]
places[color=blue][color=green]
> > the old stuff back into the database (saw this when debugging) the SQL[/color][/color]
is[color=blue][color=green]
> > 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[/color]
> query[color=green]
> > string, which creates a new article, when i click on the add button[/color][/color]
which[color=blue][color=green]
> > 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[/color][/color]
still[color=blue][color=green]
> > getting the old data, but the new sub is getting new data (the new data[/color]
> one[color=green]
> > starts off with blank fields then the user enters data into them) thanks
> >
> >[/color]
>
>[/color] | | | | re: problem with getting info from page
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" <~pyoon@phnip.com> wrote in message
news:OCf6RWamDHA.1004@TK2MSFTNGP09.phx.gbl...[color=blue]
> It sounds like you are not passing the long textbox correctly...
>
> "Brian Henry" <brianiup@adelphia.net> wrote in message
> news:%23uvfGvZmDHA.1884@TK2MSFTNGP09.phx.gbl...[color=green]
> > a little more information, this only happens with text boxes, the combo
> > boxes work fine with the edited information...
> >
> >
> > "Brian Henry" <brianiup@adelphia.net> wrote in message
> > news:e5xX0tZmDHA.2432@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > I have a page which reads an article from the database it has 1 text[/color][/color]
> box,[color=green]
> > 2[color=darkred]
> > > dropdown lists, and a longreat HTML text box. I load the information[/color][/color]
> from[color=green][color=darkred]
> > > 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[/color]
> > event,[color=darkred]
> > > the problem is, it still has the old unedited data in memory... and[/color][/color]
> places[color=green][color=darkred]
> > > the old stuff back into the database (saw this when debugging) the SQL[/color][/color]
> is[color=green][color=darkred]
> > > 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[/color]
> > query[color=darkred]
> > > string, which creates a new article, when i click on the add button[/color][/color]
> which[color=green][color=darkred]
> > > does an intert sql command, the data that was taken from new fields[/color][/color][/color]
goes[color=blue][color=green][color=darkred]
> > > through correctly. why would this be happening? why is my update sub[/color][/color]
> still[color=green][color=darkred]
> > > getting the old data, but the new sub is getting new data (the new[/color][/color][/color]
data[color=blue][color=green]
> > one[color=darkred]
> > > starts off with blank fields then the user enters data into them)[/color][/color][/color]
thanks[color=blue][color=green][color=darkred]
> > >
> > >[/color]
> >
> >[/color]
>
>[/color] | | | | re: problem with getting info from page
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" <brianiup@adelphia.net> wrote in message
news:e5xX0tZmDHA.2432@TK2MSFTNGP10.phx.gbl...[color=blue]
> I have a page which reads an article from the database it has 1 text box,[/color]
2[color=blue]
> 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[/color]
event,[color=blue]
> 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[/color]
query[color=blue]
> 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[/color]
one[color=blue]
> starts off with blank fields then the user enters data into them) thanks
>
>[/color] | | | | re: problem with getting info from page
figured it out, it was a postback issue...
"Brian Henry" <brianiup@adelphia.net> wrote in message
news:e5xX0tZmDHA.2432@TK2MSFTNGP10.phx.gbl...[color=blue]
> I have a page which reads an article from the database it has 1 text box,[/color]
2[color=blue]
> 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[/color]
event,[color=blue]
> 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[/color]
query[color=blue]
> 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[/color]
one[color=blue]
> starts off with blank fields then the user enters data into them) thanks
>
>[/color] |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,382 network members.
|