Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (ClaimsPrincipal.Current.Identity.IsAuthenticated == false)
            {
                Response.Redirect("~/Account/Login.aspx");
            }
            else
            {
                MySqlConnection dbconn = new MySqlConnection(CommonClass.connectionstring);
                dbconn.Open();
                UserModel lUserModel = CommonClass.Get_External_User_Profile(dbconn);

                if (lUserModel != null)
                {
                    if (lUserModel.Mobile_Validated == 0 || lUserModel.Email_Address_Validated == 0)
                    {
                        Response.Redirect("~/Account/Validate.aspx");
                    }
                }

                dbconn.Close();
            }

            if (!IsPostBack)
            {
                if (Request.QueryString["Customer_Id"] != null)
                {
                    OrderForm1.Set_Customer_Id = Request.QueryString["Customer_Id"].ToString();
                }
                //else
                //{
                //   if (Session["PIN_CODE"] == null)
                //  {
                //     Response.Redirect("Pin_Code_Validation.aspx");
                //}
                //}
                OrderForm1.Prepare_Order_Form();
            }
        }
Beispiel #2
0
 protected void Create_New_Order_Button_Click(object sender, EventArgs e)
 {
     OrderForm1.Prepare_Order_Form();
     MultiView2.SetActiveView(Order_View);
 }