A
ad
I have a Button (named btnOK) and a ImageButton (named ImageButton1) in a
Template field of a GridView;
I use the codes below to find the Button and ImageButton, the ImageButton
can be found, but Button can't find.
Why?
protected void gvCheckSem_RowEditing(object sender, GridViewEditEventArgs
e)
{
Button btnOk = (Button)gvCheckSem.Rows[e.NewEditIndex].FindControl("btnOK");
ImageButton btn1 =
(ImageButton)gvCheckSem.Rows[e.NewEditIndex].FindControl("ImageButton1");
....
}
Template field of a GridView;
I use the codes below to find the Button and ImageButton, the ImageButton
can be found, but Button can't find.
Why?
protected void gvCheckSem_RowEditing(object sender, GridViewEditEventArgs
e)
{
Button btnOk = (Button)gvCheckSem.Rows[e.NewEditIndex].FindControl("btnOK");
ImageButton btn1 =
(ImageButton)gvCheckSem.Rows[e.NewEditIndex].FindControl("ImageButton1");
....
}