on rowdatabound event register your control to scriptmanager
LinkButton lb1 = e.Row.FindControl("lnkbtnPhotoaddupload") as LinkButton;
ScriptManager.GetCurrent(this).RegisterPostBackControl(lb1);
as like this and keep simple scriptmanager and put all the code in the updatepanel