// ////////////////////////////////////////////////////////////////////////
        // INITIAL EVENTS
        //
        protected void Page_Load(object sender, EventArgs e)
        {
            // Register client scripts
            this.RegisterClientScripts();

            if (!IsPostBack)
            {
                // Security check
                if (!(Convert.ToBoolean(Session["sgLFS_PROJECTS_REVENUE_ADD"])))
                {
                    Response.Redirect("./../../error_page.aspx?error=" + "You are not authorized to view this page. Contact your system administrator.");
                }

                // Validate query string
                if ((string)Request.QueryString["source_page"] == null)
                {
                    Response.Redirect("./../../error_page.aspx?error=" + "Invalid query string in revenue_add.aspx");
                }

                // Tag Page
                hdfCompanyId.Value = Convert.ToInt32(Session["companyID"]).ToString();
                Session.Remove("projectRevenueDummy");

                // If coming from
                // ... employee_navigator.aspx
                if (Request.QueryString["source_page"] == "lm")
                {
                    // ... Initialize tables
                    revenueAddTDS = new RevenueAddTDS();

                    // ... Store tables
                    Session["revenueAddTDS"] = revenueAddTDS;
                    Session["projectRevenue"] = revenueAddTDS.ProjectRevenue;
                }

                // StepSection1In
                wzRevenue.ActiveStepIndex = 0;
                StepDataIn();
            }
            else
            {
                // Restore tables
                revenueAddTDS = (RevenueAddTDS)Session["revenueAddTDS"];
                projectRevenue = revenueAddTDS.ProjectRevenue;
                Session["projectRevenue"] = revenueAddTDS.ProjectRevenue;
            }
        }
 /// <summary>
 /// InitData
 /// </summary>
 protected override void InitData()
 {
     _data = new RevenueAddTDS();
 }