protected void btntrail_Click(object sender, EventArgs e) { try { string Status = ""; string BankName = ""; int Result = 0; BankName = AST.GetBankName(); Result = AST.InsertTrailSMS(TxtMobileno.Text, Session["EntryDate"].ToString(), "Welcome, Test massage from " + BankName + ".", "1"); if (Result > 0) { Status = MS.Send_TrailSMS(TxtMobileno.Text, Session["EntryDate"].ToString()); } if (Status == "000" || Status == "1701") { WebMsgBox.Show("SMS send Successfully!!!", this.Page); TxtMobileno.Text = ""; } else { WebMsgBox.Show("Unsuccessfull!!!", this.Page); } } catch (Exception ex) { ExceptionLogging.SendErrorToText(ex); } }