예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //HttpContext ctx = HttpContext.Current;
                try
                {
                    HttpContext.Current.Session["sess_userid"].ToString();

                    head.Text = "Something Went Wrong";
                    Exception err = Server.GetLastError();

                    if (err != null)
                    {
                        if (err.InnerException != null)
                        {
                            lbl_err.Text = err.InnerException.Source + "-" + err.InnerException.Message;
                            bucket.X(lbl_err.Text + "-" + Request.Url.ToString());
                        }
                    }
                }
                catch (Exception ex)
                {
                    //              Response.Write(ex.Message);
                    head.Text = "Session Expired";
                    Exception err = Server.GetLastError();
                    // lbl_err.Text = err.InnerException.Source + "-" + err.InnerException.Message;

                    if (err != null)
                    {
                        if (err.InnerException != null)
                        {
                            lbl_err.Text = err.InnerException.Source + "-" + err.InnerException.Message;
                            bucket.X(lbl_err.Text + "-" + Request.Url.ToString());
                        }
                    }
                }
            }
        }