protected void btnCustSave_Click(object sender, EventArgs e) { CustomerService.AddCustomer(Convert.ToString(ViewState["LetterNo"]), txtCustName.Text, "I", dtpCustBirthDate.SelectedDate, rblCustGender.SelectedValue, String.IsNullOrEmpty(ddlCustJobPosition.SelectedValue) ? 0 : Convert.ToInt32(ddlCustJobPosition.SelectedValue), txtCustEmail.Text, txtCustAddress.Text, txtCustZipCode.Text, txtCustWebsite.Text, txtInformationSource.Text, new Dictionary <int, string>() { { 1, txtCustCellPhone1.Text }, { 2, txtCustCellPhone2.Text } }, new Dictionary <int, string>() { { 1, txtCustSocialMediaNetwork1.Text }, { 2, txtCustSocialMediaNetwork2.Text } }, new Dictionary <int, string>() { { 1, txtCustWorkPhone1.Text }, { 2, txtCustWorkPhone2.Text } }); ; RadGridParticipants.DataBind(); }
protected void RadGridParticipants_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { if (e.CommandName == "DeleteParticipant") { string customerCode = Convert.ToString(e.CommandArgument); ConfirmationLetterService.RemoveParticipant(RowID, customerCode); RadGridParticipants.DataBind(); } }
protected void btnRefreshParticipant_Click(object sender, EventArgs e) { RadGridParticipants.DataBind(); }