protected void Session_Start(object sender, EventArgs e) { string sMsg = "Message when starting session."; q.AddToTestLog(sMsg); try { if (Session["RepDistributorID"] == null) { Session["Admin"] = 0; Session["Internal"] = 0; Session["RepID"] = 0; Session["QuoteId"] = 0; Session["RepDistributorID"] = 0; // Used for pricing. } } catch (Exception ex) { sMsg = "Error message when starting session: " + ex.Message; q.AddToTestLog(sMsg); // Response.Write("Exception occurred: " + ex + "."); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { txtUserName.Focus(); } } catch (Exception ex) { string sMsg = "Error message when logging in: " + ex.Message; q.AddToTestLog(sMsg); return; } }