/// <summary> /// Method is used to bind vetting attachement type /// </summary> public void VET_Get_VettingAttachmentType() { try { DataTable dtAttachmentType = objBLLIndx.VET_Get_VettingAttachmentType(); DDLAttachment.DataSource = dtAttachmentType; DDLAttachment.DataTextField = "Vetting_Attachmt_Type_Name"; DDLAttachment.DataValueField = "Vetting_Attachmt_Type_ID"; DDLAttachment.DataBind(); DDLAttachment.Items.Insert(0, new ListItem("-Select-", "0")); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }