private void BindTemplateList() { TemplateFacade facade = new TemplateFacade(); List<TemplateInfo> templateList = facade.GetTemplateInfoListByUserId(CurrentUser.Id); rptTemplateList.DataSource = templateList; rptTemplateList.DataBind(); }
private void BindTemplateList() { TemplateFacade facade = new TemplateFacade(); List<TemplateInfo> templateList = facade.GetTemplateInfoListByUserId(CurrentUser.Id); templateList.Insert(0, TemplateInfo.GetEmptyObject<TemplateInfo>()); ddlTemplates.DataSource = templateList; ddlTemplates.DataBind(); if (!string.IsNullOrEmpty(Request["Id"])) { ddlTemplates.SelectedValue = Request["Id"]; } }