Click here to Skip to main content
15,917,731 members

Comments by Mohit1984 (Top 2 by date)

Mohit1984 1-Dec-10 6:50am View    
when i use this code then error comes like
Object reference not set to an instance of an object.

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
TextBox txt = e.Row.FindControl("TextBox1") as TextBox;
txt.TextChanged += new EventHandler(TextBox1_TextChanged);

}
Mohit1984 29-Sep-10 8:11am View    
Reason for my vote of 5
Automatic vote of 5 for accepting answer.