如何通过java脚本计算gridview中下拉值的总和 [英] how to calculate sum of dropdown values in gridview by java script

查看:74
本文介绍了如何通过java脚本计算gridview中下拉值的总和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,





我有一个gridview。在gridview中有多个下拉列表。每个下拉列表的值都是1到10.在gridview的最后一个单元格中有一个Label。我希望得到Label上所有下拉值的总和。

Dear All,


I have a gridview.In that gridview there are multiple dropdownlist. each dropdownlist has values from 1 to 10. In last cell of gridview there is a Label. I want to get sum of all dropdown values on Label.

推荐答案

检查

- 使用jQuery计算ASP.Net GridView中的行总计和总计 [< a href =http://www.aspsnippets.com/Articles/Calculate-Row-Total-and-Grand-Total-in-ASPNet-GridView-using-jQuery.aspx\"target =_ blanktitle =New Window > ^ ]

- GridView行级的JavaScript [ ^ ]


尝试阅读以下文章以获取一些想法。看看你是否能够开发一些代码。

一旦你知道如何从网格视图中捕获下拉值,

编写代码来捕获所有下拉值以及总和和输出到标签的值。





http://learn.extreme-advice.com/index.php?topic=35.0 [ ^ ]



< a href =http://technico.qnownow.com/how-to-get-dropdown-selected-value-inside-gridview-using-javascript/> http://technico.qnownow.com/how-to- get-dropdown-selected-value-inside-gridview-using-javascript / [ ^ ]
Try reading the below articles for some ideas . See whether you are able to develop the some code .
Once you get idea on how to capture the value of drop down from a grid view ,
write code to capture the values from all the drop down and the sum up and output to the label .


http://learn.extreme-advice.com/index.php?topic=35.0[^]

http://technico.qnownow.com/how-to-get-dropdown-selected-value-inside-gridview-using-javascript/[^]


这篇关于如何通过java脚本计算gridview中下拉值的总和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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