Esempio n. 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ReminderReference.ReminderClient        client = new ReminderReference.ReminderClient("BasicHttpBinding_IReminder");
            List <ReminderReference.ReminderDetail> data   = client.getAllReminders(TextBox1.Text).ToList();

            GridView1.DataSource = data;
            GridView1.DataBind();
        }
Esempio n. 2
0
        protected void Button4_Click(object sender, EventArgs e)
        {
            string userId  = TextBox1.Text;
            string eventId = GridView1.SelectedRow.Cells[3].Text;

            ReminderReference.ReminderClient client = new ReminderReference.ReminderClient("BasicHttpBinding_IReminder");
            string output = client.deleteReminder(userId, eventId);

            List <ReminderReference.ReminderDetail> data = client.getAllReminders(TextBox1.Text).ToList();

            GridView1.DataSource = data;
            GridView1.DataBind();
        }
Esempio n. 3
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            DateTime date        = Calendar1.SelectedDate;
            string   time        = DropDownList2.SelectedValue.ToString() + ":" + DropDownList3.SelectedValue.ToString() + ":00";
            string   eventType   = DropDownList4.SelectedValue.ToString();
            string   description = TextBox1.Text;
            string   userId      = Session["userid"].ToString();

            date = date.Date;
            ReminderReference.ReminderClient client = new ReminderReference.ReminderClient("BasicHttpBinding_IReminder");
            string output = client.insertReminder(userId, date, time, eventType, description);

            Label1.Text = output;
        }
Esempio n. 4
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            string userid = Session["userid"].ToString();
            // DateTime date = DateTime.Parse(Session["date"].ToString());
            DateTime date = Calendar1.SelectedDate;

            date = date.Date;
            string eventId    = Session["eventid"].ToString();
            string time       = DropDownList1.SelectedValue.ToString() + ":" + DropDownList2.SelectedValue.ToString();
            string eventType  = DropDownList3.SelectedValue.ToString();
            string desciption = TextBox1.Text;

            Console.WriteLine(userid + eventId + time + eventType + desciption);
            ReminderReference.ReminderClient client = new ReminderReference.ReminderClient("BasicHttpBinding_IReminder");
            string output = client.updateReminder(userid, date, time, eventType, desciption, eventId);

            Label1.Text = output;
        }