473,403 Members | 2,284 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,403 software developers and data experts.

add textbox values

Is there a way to add 4 textbox values without the use of a button and a
postback?

I need to add 4 textboxes and the total should change everytime a new number
is entered in any box.
I tried this once but the postback is causing an 'input string not correct
format' error message when the page first loads and the user enters a number
in any of the textboxes.

Jul 10 '08 #1
4 1252
Have you looked into using Javascript for this?

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"Mike" <mo******@gmail.comwrote in message
news:eZ**************@TK2MSFTNGP06.phx.gbl...
Is there a way to add 4 textbox values without the use of a button and a
postback?

I need to add 4 textboxes and the total should change everytime a new
number is entered in any box.
I tried this once but the postback is causing an 'input string not correct
format' error message when the page first loads and the user enters a
number in any of the textboxes.

Jul 10 '08 #2
No, actaully it never cross my mind to be honest with you.
"David Wier" <dw@dw.comwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
Have you looked into using Javascript for this?

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with
no bloated markup
"Mike" <mo******@gmail.comwrote in message
news:eZ**************@TK2MSFTNGP06.phx.gbl...
>Is there a way to add 4 textbox values without the use of a button and a
postback?

I need to add 4 textboxes and the total should change everytime a new
number is entered in any box.
I tried this once but the postback is causing an 'input string not
correct format' error message when the page first loads and the user
enters a number in any of the textboxes.


Jul 10 '08 #3
"David Wier" <dw@dw.comwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
Have you looked into using Javascript for this?
Assuming it's not a shopping basket he's building :)
Jul 10 '08 #4
Its not, its just a form to show calculations and rules based on the calcs.

"Marc " <Rm********@imarc.co.ukwrote in message
news:Ob**************@TK2MSFTNGP03.phx.gbl...
"David Wier" <dw@dw.comwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
>Have you looked into using Javascript for this?

Assuming it's not a shopping basket he's building :)

Jul 11 '08 #5

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

Similar topics

2
by: anonieko | last post by:
This applies to javascript dynamic textbox onkey > > > Newsgroups: comp.lang.javascript From: Lasse Reichstein Nielsen <l...@hotpop.com> - Find messages by this author Date: Fri, 15 Jul 2005...
1
by: Grey | last post by:
my idea is want to add textbox on the datagrid. the data of the textbox was extract from DB. use can change the value on the textbox anytime. after the change, user just click the button on the...
0
by: Newasps | last post by:
Hi guys, I have a problem with UpdateCommand Event. In tihs event Ä°'m creating required controls to get that controls' values and also get them. But when I try to get updated values I'm getting the...
7
by: Peter D.C. | last post by:
Hi I want to update data hold in several textbox controls on an asp.net form. But it seems like it is the old textbox values that is "re-updates" through a stored procedure who updates a SQL...
0
by: colleen1980 | last post by:
Hi: There are two textboxs in my main form. One is bound and another is unbound. There is no entry in the unbound textbox as values come into automatically after entering some information in the...
1
by: sathyan8294 | last post by:
i want to display the name starting with any letter(A-Z,a-z) in textbox from sqldatabase through datagrid using vb.net windows application. for example, values are in datagrid like companyid ...
2
by: blitzztriger | last post by:
Hello!! how do i insert values into mysql , after parsing a submiting textbox?? I made the arrays, so this should be a basic insertion of them in the db, but something is missing, or in the wrong...
1
by: Andy B | last post by:
I have this code: protected void EditEventsWizard_NextButtonClick(object sender, WizardNavigationEventArgs e) { //get the values from the DetailsView TextBox StartTime =...
1
by: Kageoni2 | last post by:
I'm trying to add new records to my database using 4 textboxes, one for each field in my databases table. I've got ID, Firstname, Surname and Course. But I can't figure out at all how to link...
2
by: mylog | last post by:
Hi all, I am having a small problem on getting the values of the dynamically generated textboxes in C# windows application. I have successfully read an xml file and put its key and value fields as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.