function Read_Data () { var str=''; var Grid_Table = document.getElementById('<%= GridView1.ClientID %>'); for(var row=1; row<Grid_Table.rows.length; row++) { for(var col=0; col<Grid_Table.rows[row].cells.length; col++) { if(col==0) if(document.all) str=str+Grid_Table.rows[row].cells[col].innerText; else str=str+Grid_Table.rows[row].cells[col].textContent; else if(document.all) str=str+'--'+Grid_Table.rows[row].cells[col].innerText; else str=str+'--'+Grid_Table.rows[row].cells[col].textContent; } str=str+'\n'; } alert(str); return false; }
20 Dec 2011
Loop through gridview row in javascript
Subscribe to:
Post Comments (Atom)
-
Introduction The SAP .Net Connector is a software component supplied by SAP that makes it possible to communicate between an SAP host and ...
-
SSRS will often timeout when starting under Windows Server: The error is: Windows could not start the SQL Server Reporting Services (MS...
-
Many times I found that the Reporting service is configured to access as "Anonymous Access", so any user having URL can access r...
No comments:
Post a Comment