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 If you follow the various newsgroups on Microsoft SQL Server, you often see people asking why they can't do: SELECT * FROM...
-
Introduction The SAP .Net Connector is a software component supplied by SAP that makes it possible to communicate between an SAP host and ...
-
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