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

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

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

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

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

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

            Label1.Text = output;
        }
        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);
            ReminderReferance.ReminderClient client = new ReminderReferance.ReminderClient("BasicHttpBinding_IReminder");
            string output = client.updateReminder(userid, date, time, eventType, desciption, eventId);

            Label1.Text = output;
        }