private void FillExpiryDates(DropDownList ddlExpDt) { List <string> expiryDates = OCHelper.GetOCExpList(rblOCType.SelectedValue); foreach (string item in expiryDates) { ddlExpDt.Items.Add(item); } }
public void FillAllExpiryDates(string ocType, System.Web.UI.WebControls.DropDownList ddlExpDt) { List <string> expiryDates = OCHelper.GetOCExpList(ocType); foreach (string item in expiryDates) { ddlExpDt.Items.Add(item); } }
private void FillExpiryDates(DropDownList ddlExpDt) { List <string> expiryDates; if (MySession.Current.RecordsObject == null) { expiryDates = OCHelper.GetOCExpList(rblOCType.SelectedValue); } else { expiryDates = MySession.Current.RecordsObject.expiryDates; } foreach (string item in expiryDates) { ddlExpDt.Items.Add(item); } }