摘要:GridView FindControl和DetailsView FindControl差異
GridView FindControl和DetailsView FindControl差異
搞了我好久才找到
GridView1_RowUpdating |
DetailsView1_ItemUpdating |
FileUpload fu = GridView1.Rows[e.RowIndex].Cells[0].FindControl("fileUpload2") as FileUpload; if (fu.HasFile) { Response.Write(fu.FileName); } |
FileUpload fu =(FileUpload) DetailsView1.FindControl("FileUpload1"); if (fu.HasFile) { Response.Write(fu.FileName); } |