private void ShowClarificationDoc() { DataSet dsGetAllDocuments; dsGetAllDocuments = dbDocumentStatusData.GetClarificationDoc(lblVillageCodeHidden.Text, LblDocNo.Text, "HO"); if (dsGetAllDocuments.Tables[0].Rows.Count > 0) { //string UploadedDocument = dsGetAllDocuments.Tables[0].Rows[0]["documentname"].ToString(); //if(UploadedDocument != "") //{ for (int i = 0; i < dsGetAllDocuments.Tables[0].Rows.Count; i++) { string UploadedDocument = dsGetAllDocuments.Tables[0].Rows[i]["documentname"].ToString(); string DocumentCode = dsGetAllDocuments.Tables[0].Rows[i]["documentcode"].ToString(); if (DocumentCode == "CPTS") { lbllinkClrPTS.Text = UploadedDocument; } if (DocumentCode == "CFTS") { lbllnkClrFTS.Text = UploadedDocument; } if (DocumentCode == "CPN") { lbllinkClrNotice.Text = UploadedDocument; } } //} } else { // ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Some Required Documents not uploaded');", true); } }