GridView
<script type="text/javascript"> $(function () { $("input[type=checkbox]").change(function () { var totalPrice = 0, ctlPrice; $('#GridView1 tr').each(function () { if ($(this).find('input:checkbox').attr("checked")) { ctlPrice = $(this).find('[id$= lblListPrice]'); totalPrice += parseFloat(ctlPrice.text().replace(/[^\d\.]/g, '')); } }); $("#<%=GridView1.ClientID %> [id*=lblTotal]").text(totalPrice.toFixed(2)); }); }); </script>
pre
// Get the total Label value. var total = $("#<%=GridView1.ClientID %> [id*=lblTotal]").text(); // Pass to Page2.aspx Page by QueryString or something according to your logic.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)