473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Editing Text Box Values

I am filling text boxes from a data reader. That works
fine. If I edit a text box to a different value and
click a save button the orginal value that was edited is
being used in the SQL string. I verified this through
debugging.

Does anyone know of a reason why the original values are
being perserved? The text boxes are not set to read only.

Thanks.
Nov 18 '05 #1
5 1116
show code

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"brian shannon" <bs******@lbrspec.com> wrote in message
news:26****************************@phx.gbl...
I am filling text boxes from a data reader. That works
fine. If I edit a text box to a different value and
click a save button the orginal value that was edited is
being used in the SQL string. I verified this through
debugging.

Does anyone know of a reason why the original values are
being perserved? The text boxes are not set to read only.

Thanks.

Nov 18 '05 #2
Cor
Hi Brian,

Did you use
"not postback" ?

Cor
I am filling text boxes from a data reader. That works
fine. If I edit a text box to a different value and
click a save button the orginal value that was edited is
being used in the SQL string. I verified this through
debugging.

Does anyone know of a reason why the original values are
being perserved? The text boxes are not set to read only.

Nov 18 '05 #3
probably because you aren't checking for a page.ispostback when you are
binding the data from the datareader to textboxes.

it would be something like this in page_load

if not page.ispostback then
'do everything to fill the text boxes originally
end if

"brian shannon" <bs******@lbrspec.com> wrote in message
news:26****************************@phx.gbl...
I am filling text boxes from a data reader. That works
fine. If I edit a text box to a different value and
click a save button the orginal value that was edited is
being used in the SQL string. I verified this through
debugging.

Does anyone know of a reason why the original values are
being perserved? The text boxes are not set to read only.

Thanks.

Nov 18 '05 #4
Thanks Cor- I overlooked the post back.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #5
Cor
Hi Brian,

I see I edited to much but I think you saw it "IsPostBack"

Cor
Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dan Weeb | last post by:
Hi All, I have struggled through this far with help from many of you so thanks. I am stuck again. I am really new to this so don't be harsh :-) There are a few problems. You can run the script...
2
by: NewBob | last post by:
Since Access automatically highlights all of the text in a text control (I use it to hold data from a memo field) when the control is activated, I've added the following code to put the cursor at...
0
by: Sebi | last post by:
Hello All, I'm having problems, reading the new Values from CheckBox in a DataGrid. my Code Behind is C# I do exactly what other samples do, but I allways get the Initial Values instead of...
3
by: Andrea | last post by:
The Gridview's RowDeleting event, give the power - cycling the e.Keys Dictionary, to discover the values of the Primary key fields of the dataset setup throught the DataKeyNames. Since I want to...
0
by: Frenchie | last post by:
I have a Gridview with a checkbox on each row. I would like to be able to select 1 or more rows and edit one of the fields in each of these rows. Basically, I dont want my users to have to edit...
0
by: Frnak McKenney | last post by:
Can I use a bound ComboBox for both browsing and editing? I'm working on a small, standalone database application using Visual C#.NET 2003 and an Access data file. In order to keep the number...
4
by: helenwheelss | last post by:
Access 2003, using a bound form. I'm seeing rather annoying behaviour when editing data in a control with a default value. It only happens when the form is on a new record. A specific...
3
by: durga2005 | last post by:
hi im using webgrid control and i have used template columns to display the data from the database while editing the data in webgrid, im storing the the new values in two strings for using...
4
by: ASPnewb1 | last post by:
Hello, I have a 2-dimensional array created from the following text file: data1=asdfawe data2=2 data3=223d data4=22
8
by: ahilar12 | last post by:
Hi experts, I have a form with many textboxes,listboxes in php.I have a edit button to edit the values in the form.once i click the edit button the existing values should be displayed so that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
marktang
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.