public List <TickerSMSSettings> SelectTickers() { using (TickerSMSSettingsActions smsTickers = new TickerSMSSettingsActions()) { return(smsTickers.GetTickerSMSSettings("")); } }
// The id parameter name should match the DataKeyNames value set on the control public void SMSTickerAlertGrid_DeleteItem(string mobile) { using (TickerSMSSettingsActions smsTickers = new TickerSMSSettingsActions()) { smsTickers.DeleteTickerSMSSettings(mobile); } }
protected void Subscribe_Click(object sender, EventArgs e) { if (txtMobile.Text.Length < 4 || txtHigh.Text.Length == 0 || txtLow.Text.Length == 0) { lblError.Visible = true; } else { using (TickerSMSSettingsActions smsLogic = new TickerSMSSettingsActions()) { smsLogic.AddUpdateTickerSMSSettings( new TickerSMSSettings() { TickerName = Request.QueryString["id"], TickerDate = DateTime.Parse(lblLastRead.Text), High = Decimal.Parse(txtHigh.Text.Replace("$ ", "")), Low = Decimal.Parse(txtLow.Text.Replace("$ ", "")), Mobile = "+1" + txtMobile.Text }); } } Response.Redirect("/Default.aspx"); }