hi friends,
i inserted records from gridview rows to database,
its working,
for (int i = 0; i < GridView1.Rows.Count; i++)
{
GridViewRow row = GridView1.Rows[i];
OpenConnection(con);
str = "insert into cdr (duration,userfield) values('" + row.Cells[0].Text + "','" + row.Cells[1].Text + "'')";
SqlCommand com = new SqlCommand(str, con);
com.ExecuteNonQuery();
con.Close();
}
lblMessage.Text = "Records inserted";
but if i give paging in gridview ,
insert only first page records,
please give the code for it.
thanks.