示例#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();
        }
示例#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();
        }