Exemplo n.º 1
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"];
            }
        }