hi friends,
this is balu.while i am working with gridview i am facing this problem.this code is running successfully in gridview edit event.but when i used the same code in textboxtext changed event.it is giving error.pls send me the solution.
this is balu.while i am working with gridview i am facing this problem.this code is running successfully in gridview edit event.but when i used the same code in textboxtext changed event.it is giving error.pls send me the solution.
Code:
protected void TextBox2_TextChanged(object sender, EventArgs e)
{
foreach (GridViewRow row in GridView1.Rows)
{
string txtText = ((TextBox)((GridView)sender).Rows[row.RowIndex].FindControl("TextBox2")).Text;
}
}
Comment