protected void uiLinkButtonSend_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(uiTextBoxEnMail.Text)) { Subscribers sub = new Subscribers(); sub.AddNew(); sub.Email = uiTextBoxEnMail.Text; sub.Save(); uiLabelMessage.Visible = true; } }
protected void uiButtonUpdate_Click(object sender, EventArgs e) { bool done =false; if (CurrentSubscriber != null) { Subscribers objData = CurrentSubscriber; objData.Email = uiTextBoxEMail.Text; objData.Save(); } else { Subscribers objData = new Subscribers(); objData.AddNew(); objData.Email = uiTextBoxEMail.Text; objData.Save(); } uiPanelEdit.Visible = false; uiPanelViewSubscribers.Visible = true; BindData(); Clearfields(); CurrentSubscriber = null; }