예제 #1
0
 private void BindTemplateList()
 {
     TemplateFacade facade = new TemplateFacade();
     List<TemplateInfo> templateList = facade.GetTemplateInfoListByUserId(CurrentUser.Id);
     rptTemplateList.DataSource = templateList;
     rptTemplateList.DataBind();
 }
예제 #2
0
        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"];
            }
        }