/// <summary> /// Method is used to bind attachment according to the particular response. /// </summary> /// <param name="Response_ID">selected Response id</param> public void LoadAttachment(string Response_ID) { try { DataTable dt = objBLLIndx.VET_Get_ResponseAttachment(UDFLib.ConvertToInteger(Response_ID)); DataView dvImage = dt.DefaultView; gvAttachment.DataSource = dt.DefaultView; gvAttachment.DataBind(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }