private void BindDocuments() { List <DocumentEL> lstDocs = documentDal.GetAllDocumentType(); lstDocuments.DataSource = lstDocs.OrderBy(x => x.DocumentID).ToList(); lstDocuments.DataBind(); }
private void BindDocumentTypes() { List <DocumentEL> lstDocs = documentDal.GetAllDocumentType(); lstDocuments.DataSource = lstDocs; lstDocuments.DataBind(); }
public void LoadServices() { drpServices.Items.Clear(); List <DocumentEL> lstDocs = documentDal.GetAllDocumentType(); foreach (DocumentEL item in lstDocs) { ListItem serviceData = new ListItem(item.DocumentTypeName, item.Description); serviceData.Attributes.Add("serviceid", item.DocumentID.ToString()); drpServices.Items.Add(serviceData); } }