Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                site = new DBSite();

                ddlClass.Items.Add(new ListItem("All", "-1"));
                util.FillClass(site, ddlClass);


                util.FillYear(ddlYear);

                util.FillMonth(ddlMonth);

                util.FillDay(ddlDay);

                ddlYear.ClearSelection();
                ddlYear.SelectedValue = (util.indianTime.Year).ToString();

                //Select Current Month and Year to dropdowns
                ddlMonth.ClearSelection();
                ddlMonth.SelectedValue = (util.indianTime.Month).ToString();

                ddlDay.ClearSelection();
                // ddlDay.SelectedValue = (DateTime.Now.Day).ToString();
                ddlDay.SelectedValue = (util.indianTime.Day).ToString();
                //ddlDay.SelectedIndex = 8;


                txtSearch.Text = util.indianTime.ToString();
            }
        }