473,382 Members | 1,313 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,382 software developers and data experts.

Dynamic calculation using databinding and Autopostback property


Hi:
I have a form in which the total is calculated dynamically(without
using a submit button) based on the inputs given in the text box
fields.
I had bound the total textbox control using the custom binding
expression
system.convert.toDouble(txt0to30dayscosts) +
system.convert.toDouble(txt31to60costs) +
system.convert.toDouble(txt61to90costs) +
system.convert.toDouble(txt91to120costs) +
system.convert.toDouble(txt120daysovercosts) +
system.convert.toDouble(txtprecosts)
I had also set the Autopostback property "True" for each of these
textbox controls.Yet this does not seem to work,I would really
appreciate if someone would help me on this.
Thanks

Nov 30 '05 #1
1 1427
Jagdish,

First, where is this code located. You have to put it in TextChanged event
handler function for each textbox.

Second, TextChanged event will on raise when focus moves out of the textbox
control.

The better way to do is write JavaScript code to update Total on the client
side without having to postback.

HTH

<ja******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...

Hi:
I have a form in which the total is calculated dynamically(without
using a submit button) based on the inputs given in the text box
fields.
I had bound the total textbox control using the custom binding
expression
system.convert.toDouble(txt0to30dayscosts) +
system.convert.toDouble(txt31to60costs) +
system.convert.toDouble(txt61to90costs) +
system.convert.toDouble(txt91to120costs) +
system.convert.toDouble(txt120daysovercosts) +
system.convert.toDouble(txtprecosts)
I had also set the Autopostback property "True" for each of these
textbox controls.Yet this does not seem to work,I would really
appreciate if someone would help me on this.
Thanks

Nov 30 '05 #2

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

Similar topics

5
by: Irfan Akram | last post by:
Hi Mr.Steve, First of all many thanks for your kind response. The thing is that I am trying to control the user's action of deselecting a checkbox, once he has selected it. Also the checkbox has...
0
by: louise raisbeck | last post by:
Hi there, I am databinding a datagrid on the onload with the usual !IsPostBack condition. I have to create some dynamic checkboxes, because i dont know how many i will need until the dataset...
0
by: louise raisbeck | last post by:
Hi there, I am databinding a datagrid on the onload with the usual !IsPostBack condition. I have to create some dynamic checkboxes, because i dont know how many i will need until the dataset...
2
by: dilip.movva | last post by:
Hi, In the ItemDataBound of my datagrid I am creating a checkbox dynamically. I have the eventhandler defined for CheckedChanged of the check box. The event is not firing. The grid is bound in the...
7
by: | last post by:
I have what's probably a simple page lifecycle question related to dynamically evaluating values that are placed by a repeater and dynmically placing user controls that use those values. I'm...
7
by: =?Utf-8?B?SmVmZiBCZWVt?= | last post by:
The default paging behavior of the gridview doesn't work well with very large sets of data which means we have to implement some sort of custom paging. The examples I have seen (4guysfromrolla,...
1
by: philippe sillon | last post by:
I have a stupid problem but not able to find solution :( I have repeater that create user control (WebUserControl1) . I pass parameter (InterationString) to user control that is...
1
by: MaryamSh | last post by:
Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button...
0
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.