예제 #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();
        }
예제 #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();
        }