示例#1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (Session["username"] == null)
            {
                Session["flag"] = "1";
                Response.Redirect("WebForm7.aspx");
            }
            else
            {
                dml ob = new dml();

                /*SMS Sending
                 * SMS.APIType = SMSGateway.Site2SMS;
                 * SMS.MashapeKey = "7DFfOImpRmmshfYB7oUmXMcnoFmMp1PSxMyjsnbzIaH9U6gpYb";
                 * SMS.Username = "******";
                 * SMS.Password = "******";
                 * SMS.SendSms("9495528982", "This Is Testing Jesus");
                 * end*/
                userid    = (string)Session["userid"];
                bookingid = (string)Session["bookingid"];
                modelid   = (string)Session["modelid"];
                balance   = (string)Session["balalance"];
                ob.booking_details(bookingid, userid, modelid, colorid, submodelid, System.DateTime.Today, Label6.Text, "B", balance, TextBox4.Text, TextBox5.Text, TextBox6.Text);
                if (RadioButtonList1.SelectedIndex == 0)
                {
                    ob.payment_method(RadioButtonList1.SelectedValue.ToString(), userid, bookingid, TextBox2.Text);
                }
                if (RadioButtonList1.SelectedIndex == 1)
                {
                    ob.payment_method(RadioButtonList1.SelectedValue.ToString(), userid, bookingid, RadioButtonList2.SelectedItem.ToString());
                }
                Response.Redirect("WebForm2.aspx");
            }
        }