TextBox in DataGrid
-
Hi i am using textbox in datagrid ,so i need to add that textbox value in that datagrid and put in to label , so these working fine in IE 6 but if i run this in IE 7 and mozila the values are not adding .. function TotalBudgetAmount() { var intCount=2; var txtBudgetAmount= document.getElementById("dgridBudgetAllocationDetails__ctl"+intCount+"_txtCurrentBudgetAmount");//here txtBudgetAmount come as null in IE 7 but in IE6 its working so problem in this line var TotalAmount=0; while (txtBudgetAmount != null) { if (parseFloat(txtBudgetAmount.value)) TotalAmount = TotalAmount + parseFloat(txtBudgetAmount.value) intCount += 1; var txtBudgetAmount=document.getElementById("dgridBudgetAllocationDetails__ctl"+intCount+"_txtCurrentBudgetAmount"); } these are that lines please c this code and reply thank u Reg nantha