protected void Page_Load(object sender, EventArgs e) { if (Context.Session != null) { if (Session.IsNewSession) { HttpCookie newSessionIdCookie = Request.Cookies["ASP.NET_SessionId"]; if (newSessionIdCookie != null) { string newSessionIdCookieValue = newSessionIdCookie.Value; if (newSessionIdCookieValue != string.Empty) { if (!Page.IsCallback) { Response.Redirect("Default.aspx"); } else { Response.RedirectLocation = Page.ResolveUrl("~/Default.aspx"); } } } } } if (!IsPostBack) { lblid.Text = objTeam.Decrypt(HttpUtility.UrlDecode(Request.QueryString["TID"])); //LoadEmp(); BindTeam(); } }
protected void Page_Load(object sender, EventArgs e) { if (Context.Session != null) { if (Session.IsNewSession) { HttpCookie newSessionIdCookie = Request.Cookies["ASP.NET_SessionId"]; if (newSessionIdCookie != null) { string newSessionIdCookieValue = newSessionIdCookie.Value; if (newSessionIdCookieValue != string.Empty) { if (!Page.IsCallback) { Response.Redirect("Default.aspx"); } else { Response.RedirectLocation = Page.ResolveUrl("~/Default.aspx"); } } } } } if (!IsPostBack) { int TID = Convert.ToInt32(HttpUtility.UrlDecode(objTeam.Decrypt(Request.QueryString["id"]))); lblAccess.Text = Session["access"].ToString(); // HttpUtility.UrlDecode(objTeam.Decrypt(Request.QueryString["acc"])); lblUser.Text = Session["username"].ToString(); // HttpUtility.UrlDecode(objTeam.Decrypt(Request.QueryString["user"])); lblTeam.Text = Session["team"].ToString(); // HttpUtility.UrlDecode(objTeam.Decrypt(Request.QueryString["team"])); GetTicketStatus(); GetTicketTypes(); FillAssignedToDDLNew(); GetTicketDetails(TID); GetNotes(); GetInternalNotes(); } }