Beispiel #1
0
    protected void GetDate(object sender, EventArgs e)
    {
        string   date  = Hidden.Value.ToString();
        string   time  = Time.SelectedValue.ToString();
        DateTime dates = Convert.ToDateTime(date);

        if (dates > DateTime.Now)
        {
            DBoperations DB    = new DBoperations();
            int          temp  = int.Parse(advisor.Value);
            Boolean      truth = DB.CreateAdvisorTimes(date, time, temp);

            GetPrevDates(temp);
        }
        else
        {
            hold.Text = "This date is unavailable";
        }
    }