protected void Button1_Click(object sender, EventArgs e) { Label3.Text = "Sent!"; string rec = TextBox1.Text; Santosh_ref.Service1Client cl = new Santosh_ref.Service1Client(); cl.sendEmail(TextBox1.Text, TextBox2.Text); }
protected void Button1_Click(object sender, EventArgs e) { msg = "Selected Item(s):<br /><br />"; // Iterate through the Items collection of the CheckBoxList // control and display the selected items. for (int i = 0; i < CheckBoxList1.Items.Count; i++) { if (CheckBoxList1.Items[i].Selected) { msg += CheckBoxList1.Items[i].Text + "<br />"; } } Santosh_ref.Service1Client client = new Santosh_ref.Service1Client(); client.sendEmail(Session["member_username"].ToString(), msg); Label5.Text = "Email of selected flight details sent to " + Session["member_username"].ToString(); }