コード例 #1
0
        protected void UpdateTheDB()
        {
            //create a new update object
            UpdateDatabase myDB = new UpdateDatabase();

            //get the data to add to database
            string   addr        = email.Text.ToString();
            DateTime dateNeeded  = Calendar1.SelectedDate;
            int      requestType = 1;//for cover letters
            DateTime dateReq     = System.DateTime.Now.Date;
            TimeSpan difference  = dateNeeded - dateReq;
            int      daysAllowed = (int)difference.TotalDays;
            int      projType    = drpDwnProject.SelectedIndex;

            //update the database
            myDB.UpdateDB(addr, dateNeeded, requestType, daysAllowed, projType);
        }
コード例 #2
0
        protected void UpdateTheDB()
        {
            //create a new update object
            UpdateDatabase myDB = new UpdateDatabase();

            //get the data to add to database
            string   addr        = txtEmail.Text.ToString();
            DateTime dateNeeded  = Calendar1.SelectedDate;
            int      requestType = 0;//for art requests
            DateTime dateNeeded  = Calendar1.SelectedDate.Date;
            DateTime dateReq     = System.DateTime.Now.Date;
            TimeSpan difference  = dateNeeded - dateReq;
            int      daysAllowed = (int)difference.TotalDays;
            int      projType    = drpDwnProject.SelectedIndex;
            int      numDiscs    = Convert.ToInt32(dropDwnCDs.SelectedItem.Value);

            //update the database
            myDB.UpdateDB(addr, dateNeeded, requestType, daysAllowed, projType, numDiscs);
        }