javascript:
Code:
 
        function Calculate(isTax, Tax, isPer, discountAmount, discountTypeId, discountPercentage, id, isPreFix, code, price, txtUser, msg_Cost) {

            var txtUser = document.getElementById(txtUser);
            var msg_Cost = document.getElementById(msg_Cost);
            var user = parseFloat(txtUser.value);
            //var lineTotal = user * price;
            var lineTotal = user;
            var CostTotal = user * price;
            if (isNaN(CostTotal))
                msg_Cost.innerText = "";
            else
                msg_Cost.innerText = FormatToMoney(CostTotal, code, ",", ".");


            var grid = document.getElementById("<%= grvModule.ClientID %>");
            var lb = grid.getElementsByTagName("span");
            var tb = grid.getElementsByTagName("input");
            var gridLength = grid.rows.length;
            cost = 0;
            qty = 0;
            price = 0;
            var subTotal = 0;
            var lineTotal = 0;
            var amountTax = 0;
            var amountExTax = 0;
            var totalTax = 0;

            for (var i = 1; i < gridLength - 1; i++) {

                sprice = grid.rows[i].cells[3].innerText;
               

                sprice = sprice.replace(code, "");


                sprice = sprice.replace(",", "");
                if (sprice == "")
                    price = 0;
                else
                    price = parseFloat(sprice);

               // subTotal = user;
                  subTotal = subTotal + parseFloat(price);

                if (isTax) {

                    if (isPer) {
                        amountTax = price * (Tax / 100);
                        amountExTax = price - amountTax;
                    }
                    else {
                        amountTax = Tax;
                        amountExTax = price - tax;
                    }
                    totalTax = totalTax + amountTax;

                }
            }

            if (!isNaN(subTotal) && !isNaN(discountPercentage)) {
                discountAmount = discountPercentage / 100;
                discountAmount = subTotal * discountAmount;
            }

            total = subTotal - discountAmount;
            if (discountTypeId == 2) {
                subTotal = 0;
                discountAmount = 0;
                totalTax = 0;
                total = 0;
            }

            discountstr = "";
            if (discountTypeId == 1)
                discountstr = "(Fixed) " + FormatToMoney(discountAmount, code, ",", ".");
            else if (discountTypeId == 2)
                discountstr = "(Free) " + FormatToMoney(discountAmount, code, ",", ".");
            else if (discountTypeId == 3)
                discountstr = "(" + discountPercentage + "%) " + FormatToMoney(discountAmount, code, ",", ".");
            else
                discountstr = FormatToMoney(discountAmount, code, ",", ".");
            lb[lb.length - 4].innerHTML = FormatToMoney(subTotal, code, ",", ".");
            lb[lb.length - 3].innerHTML = discountstr;
            lb[lb.length - 2].innerHTML = FormatToMoney(totalTax, code, ",", ".");
            lb[lb.length - 1].innerHTML = FormatToMoney(total, code, ",", ".");

        }
       

        }

    </script>
with the above code, it calculates the subtotal, ewhich is the total of Cost Column.
Cost Column is come from the txtuser * currentseat
which is define with :
Code:
var CostTotal = user * price;
in javascript.
i want i have also the total of users.
which is come from the txtuser.
for that i add the label in the grid veiw with the name lbl_totalUser and msg_TotalUser.
please change the script foe me so that i also get the value of total user.

please help, i also posted on other forum , but no fruitful reslut.
this is my first post on this forum
please correct the script