如何在文本框已更改事件中的页脚标签中显示文本框值的总和 [英] How to show total of a textbox value in a footer label in textbox changed event

查看:119
本文介绍了如何在文本框已更改事件中的页脚标签中显示文本框值的总和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个有3列的网格。进入文本框时,会更改其他金额列值。金额列是只读的。然后必须在文本框更改事件的页脚标签中更新此文本框的总和。



请帮助我..



在此先感谢..



Vineetha



I have a grid with 3 columns. while entering into a textbox, will change other amount column value. Amount column is read only. Then sum of this textbox must be update in the label of a footer in textbox changed event .

please help me..

Thanks in advance..

Vineetha

推荐答案

你需要写javascript或jquery为此而不是写文本框更改事件,第二件事确保你在你的问题中放入一些你现在已经尝试过的代码,不要只用文字描述你想要的东西。



参考此链接:

1. 使用jQuery计算ASP.Net GridView中的行总数和总计



2. 使用jquery或javascript的网格项目模板列总数

3. 使用JavaScript / JQuery计算GridView总数
You need to write javascript or jquery for this rather then writing on textbox change event, second thing make sure you put some code in your question that you have tried uptill now, don't just describe in words what you want.

Refer this links:
1. Calculate Row Total and Grand Total in ASP.Net GridView using jQuery

2. Gridview item template column total using jquery or javascript
3. Calculating GridView total using JavaScript/JQuery






您可以使用Asp.Net执行此操作,并且您可能不需要任何客户端脚本来获取页脚中GridView列值的总和。它用C#和Vb.Net编写。它还处理分页问题,例如如何获取GridView的每个页面中的总和以及每个页面中显示的总计(如果启用了GridView分页)。



快乐编码。



Arun
Hi,

You can do this by using Asp.Net and you probably do not need any client script do get the Sum of GridView Column values in the Footer. Its written both in C# and Vb.Net. It also handles "paging" issues, such as how to get the sum in each page of the GridView along with the Grand total, shown in every page (if GridView paging in enabled).

Happy coding.

Arun


这篇关于如何在文本框已更改事件中的页脚标签中显示文本框值的总和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆