protected void GetViewOfSubTheme()
        {
            ddlSubTheme.Items.Clear();

            SubThemeDAL stDAL = new SubThemeDAL();

            foreach (string subTheme in stDAL.GetAllSubThemesByThemeName(ddlTheme.SelectedValue))
            {
                ddlSubTheme.Items.Add(subTheme);
            }
        }
Exemple #2
0
        protected void ddlTheme_SelectedIndexChanged(object sender, EventArgs e)
        {
            ddlSubTheme.Items.Clear();

            SubThemeDAL stDAL = new SubThemeDAL();

            foreach (string subTheme in stDAL.GetAllSubThemesByThemeName(ddlTheme.SelectedValue))
            {
                ddlSubTheme.Items.Add(subTheme);
            }

            ddlSubTheme.Visible = true;
        }
Exemple #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ThemeDAL tDAL = new ThemeDAL();

                foreach (string theme in tDAL.GetAllThemes())
                {
                    ddlTheme.Items.Add(theme);
                }

                ddlSubTheme.Items.Clear();

                SubThemeDAL stDAL = new SubThemeDAL();

                foreach (string subTheme in stDAL.GetAllSubThemesByThemeName(ddlTheme.SelectedValue))
                {
                    ddlSubTheme.Items.Add(subTheme);
                }

                ddlSubTheme.Visible = true;
            }
        }