Exemplo n.º 1
0
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     v();
     if (v())
     {
         DataTable err = TransactionBOL.insertdetail(RdGender.SelectedItem.ToString(), txtFirstName.Text, txtLastName.Text, txtAddress.Text, txtCity.Text, DdlCountry.Text, txtEmailId.Text, txtpin.Text, txtMobileNo.Text, ddlday.SelectedItem + "-" + ddlmonth.SelectedValue + "-" + ddlyear.SelectedValue, RdMartialStatus.SelectedItem.ToString(), DateTime.Now, CardNo, BankName, CardType, DropDownList1.SelectedItem + "-" + DropDownList2.SelectedValue + "-" + DropDownList3.SelectedValue);
         if (err != null && err.Rows.Count > 0)
         {
             foreach (DataRow dr in err.Rows)
             {
                 msg = dr[0].ToString();
             }
             if (msg != "Sorry, You are already enrolled for Membership")
             {
                 DataTable dt = TransactionBOL.Select_RoyalCardMcDetail_REFIDWISE(txtEmailId.Text, txtMobileNo.Text);
                 ReceiptUtils.RoyalCardMcResponse(dt.Rows[0]);
                 ReceiptUtils.RoyalCardMcResponseloyality(dt.Rows[0], ConfigurationManager.AppSettings.Get("royal"));
             }
         }
         lblmsg.Text           = msg;
         grayBG.Visible        = true;
         showcontainer.Visible = true;
         Container.Visible     = true;
         clear();
         Session.Abandon();
     }
 }