protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         List <LanguageInfo> languageList = client.GetLanguageList()?.ToList();
         dLanguageList.DataSource     = languageList;
         dLanguageList.DataTextField  = "Name";
         dLanguageList.DataValueField = "LanguageId";
         dLanguageList.DataBind();
     }
     GetQuestionListLanguage();
 }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         List <CategoryInfo> categoryList = client.GetCategoryList()?.ToList();
         List <LanguageInfo> languageList = client.GetLanguageList()?.ToList();
         dCategoryList.DataSource     = categoryList;
         dCategoryList.DataTextField  = "Name";
         dCategoryList.DataValueField = "CategoryId";
         dCategoryList.DataBind();
         dLanguageList.DataSource     = languageList;
         dLanguageList.DataTextField  = "Name";
         dLanguageList.DataValueField = "LanguageId";
         dLanguageList.DataBind();
     }
 }