Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                EncryptDecrypt _EncryptDecrypt = new EncryptDecrypt();

                EID = _EncryptDecrypt.Decrypt_QueryString(Request.QueryString["EID"].ToString());
                TID = _EncryptDecrypt.Decrypt_QueryString(Request.QueryString["TID"].ToString());

                _EncryptDecrypt = null;

                hTID.Value = TID;

                if (!IsPostBack)
                {
                    GetBookingDetails(TID);
                    GetEventDetails();
                }
            }
            catch (Exception ex)
            {
                ErrHandler.WriteError(ex.Message);
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!String.IsNullOrEmpty(Request.QueryString["EID"]))
                {
                    if (!String.IsNullOrEmpty(Request.QueryString["TID"]))
                    {
                        EncryptDecrypt _EncryptDecrypt = new EncryptDecrypt();

                        EID = _EncryptDecrypt.Decrypt_QueryString(Request.QueryString["EID"].ToString());
                        TID = _EncryptDecrypt.Decrypt_QueryString(Request.QueryString["TID"].ToString());
                        string dd = _EncryptDecrypt.Decrypt_QueryString(Request.QueryString["PID"].ToString());

                        TimeSpan ts = DateTime.Now.Subtract(Convert.ToDateTime(dd));

                        double cdd = ts.TotalMinutes;

                        if (cdd > 10)
                        {
                            this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "myUniqueKey", "self.parent.location='http://showsline.com/Default.aspx?action=logout'", true);
                        }

                        _EncryptDecrypt = null;
                        GetEventDetails();
                    }
                    else
                    {
                        ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "Login Validation", "<script type='text/javascript'>alert('Server is busy.Please try again.')</script>", false);
                        Session.Abandon();
                        this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "myUniqueKey", "self.parent.location='http://showsline.com/Default.aspx?action=logout'", true);

                        //Response.Redirect("~/Default.aspx");//-kk redirect
                        //Response.Redirect("http://showline.com/Default.aspx?action=logout", false);
                        //Context.ApplicationInstance.CompleteRequest();

                    }
                }
                else
                {
                    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "Login Validation", "<script type='text/javascript'>alert('Server is busy.Please try again.')</script>", false);
                    Session.Abandon();
                    this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "myUniqueKey", "self.parent.location='http://showsline.com/Default.aspx?action=logout'", true);

                    //                    Response.Redirect("~/Default.aspx");//-kk redirect
                    //Response.Redirect("http://showline.com/Default.aspx", false);
                    //Context.ApplicationInstance.CompleteRequest();
                }

                if (!IsPostBack)
                {
                    //EID ="E03061310544648";
                    //TID = "T270613020522395";
                    txtCard.Text = "";
                    txtCardNumber.Text = "";
                    txtCVV.Text = "";

                    GetTicketDetails(TID);
                    GetVenueEventDetails();
                }
                else
                {
                    //Session.Abandon();
                    //Response.Redirect("~/Default.aspx");
                }

            }
            catch (Exception ex)
            {
                ErrHandler.WriteError(ex.Message);
            }
        }