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 5 1410
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
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
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: bagsmode |
last post by:
Hi,
I'm trying to set a session cookie and then redirect, however I get the
error:
Status: 302 Moved Location: /index.cgi
I thought I recall getting an error like this when I first tried...
|
by: Irene |
last post by:
Hi,
I have an asp page that allows a user to search for info in a DB and
add info to a DB. The search uses "ADODB.Connection" objects in the
page, but the add will use a call to an isapi dll...
|
by: Ankit Aneja |
last post by:
I put the code for url rewrite in my Application_BeginRequest on global.ascx
some .aspx pages are in root ,some in folder named admin and some in folder
named user
aspx pages which are in user...
|
by: Gunjan Garg |
last post by:
Hello All,
I am working to create a generic datagrid which accepts a
datasource(ListData - This is our own datatype) and depending on the calling
program customizes itself for sorting,...
|
by: .NET Developer |
last post by:
I'm having an issue that hopefully someone here can help me out with. First a quick explanation:
I'm managing users of my site in a fairly custom way. (in other words I'm not using asp.net's...
|
by: 6 |
last post by:
I have an asp page with a form that collects name, email address, etc. the
form page posts to itself so what I do is check to see if the request method
is POST and if it is I grab the data, do...
|
by: hzgt9b |
last post by:
Using VS2003, VB.NET,
BACKGROUND
I have a window forms based application that will be distributed and
executed directly from CD media. The app contains a TreeView control and a
WebBroswer...
|
by: rustyc |
last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-)
As I said over there:
... for a little side project at home, I'm writing a ham radio web site in...
|
by: =?Utf-8?B?dHBhcmtzNjk=?= |
last post by:
OK I have some Chinese text in sql server column that looks like this:
12大专题调研破解广东科学发展难题
This is unicode? Anyway, I put this data into a text area like this:...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |