//***********************************************************
// This source code contains confidential and proprietary *
// information of Tegratecs Development Corp.® *
// *
// Copyright 2017 by Tegratecs Development Corp.® *
// Copyright 2018 by Tegratecs Development Corp.® *
// Copyright 2019 by Tegratecs Development Corp.® *
// Copyright 2020 by Tegratecs Development Corp.® *
// All Rights Reserved. *
// *
//***********************************************************
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
namespace nsTegratecsWSv10
{
public partial class AboutUs : WebUIPageExtendedForTegratecsWebBase
{
// begin standard global variables for the web page class
private String strThisPageURL;
private System.Collections.ArrayList arrlstPagesVisited;
private System.Collections.ArrayList arrlstPagesVisitedLastControl;
// master page
SiteLevelMasterPageCSv4 MyMasterPage;
// When using 1 master page, the page life-cycle events are intertwined between the content page and the master page
// Here is the sequence of events...
// =========================
// master Page_Init
// -------------------------
// content Page_Init
// content Page_Pre_Render
// content Page_Load
// -------------------------
// master Page_Load
// master Page_Pre-Render
// master Page_Unload
// -------------------------
// content Page_Unload
// =========================
//********************************************************************************************************************
// Use Page_Init routine to force proper usage of SSL on secured and private pages (done in base.srPage_Init2_FPStd
//********************************************************************************************************************
protected void Page_Init(Object sender, EventArgs e)
{
// populate all of these global variables inside of the master page at this time (master already ran it's Page_Init)
MyMasterPage = this.Master as SiteLevelMasterPageCSv4;
// continue with the custom Event Log string builder object already in progress from master page
base.strbldrEvtLogBase = MyMasterPage.strbldrMasterPageEvtLog;
this.strThisPageURL = MyMasterPage.strThisPageURL;
base.srPage_Init2_FPStd(ref strThisPageURL, ref arrlstPagesVisited, ref arrlstPagesVisitedLastControl);
if (base.clsCustCtcActs.boolpropSignInStatus)
{
// update my account info
Table0.Rows[0].Visible = false;
Table0.Rows[1].Visible = true;
}
else
{
// join or sign in
Table0.Rows[0].Visible = true;
Table0.Rows[1].Visible = false;
}
MyMasterPage.arrlstPagesVisited = arrlstPagesVisited;
MyMasterPage.arrlstPagesVisitedLastControl = arrlstPagesVisitedLastControl;
MyMasterPage.boolSignInStatus = base.clsCustCtcActs.boolpropSignInStatus;
MyMasterPage.strContactGreetingMsg = base.clsCustCtcActs.strpropContactGreetingMsg;
MyMasterPage.strMemberStatus = base.clsCustCtcActs.strpropMemberStatus;
MyMasterPage.strInternetContactUserID = base.clsCustCtcActs.strpropInternetContactUserID;
MyMasterPage.strPasswordType = base.clsCustCtcActs.strpropPasswordType;
MyMasterPage.intContactUniqueID = base.clsCustCtcActs.intpropContactUniqueID;
MyMasterPage.boolFPUserCodeExists = base.clsCustCtcActs.boolpropFPUserCodeExists;
// Panel2 and Panel13 areas essentially invisible and disabled for use at this time
Panel2.Visible = false;
Panel2.Enabled = false;
Panel13.Visible = false;
Panel13.Enabled = false;
// add event handler for msg box button (on master page's pop-up message box (could be needed by srStdDigitalResourceAccessWrapper)
MyMasterPage.cmdevnhdlMsgBoxOKClicked += this.btnMsgBoxOKFromMasterPage;
}
protected void Page_Load(Object sender, EventArgs e)
{
base.srPage_Load_Part_1_FPStd(strThisPageURL, ref arrlstPagesVisited, ref arrlstPagesVisitedLastControl);
if (Page.IsPostBack == false)
{
//
// Called the first time that the page is loaded or if a Redirect is used regardless of previously displayed page
//
// essentially just .focus() on control causing submit
base.srPage_Load_Part_2_FPStd(strThisPageURL, ref arrlstPagesVisited, ref arrlstPagesVisitedLastControl);
}
else
{
// Page.IsPostBack occurs essentially when a page is redisplayed (unless a Redirect is issued in the code)
// Occurs even after timeout on button click event
// Occurs even after browser's back button was used to get to the page where a button was clicked
// (however, careful - viewstate returned is old in this case - server did not see this page last)
}
base.srPage_LoadFinish_FPStd(strThisPageURL);
// master page load will follow so that is where it is easiest to test for whether to display the custom event log
}
//**************************************************************************************************
// this routine is run each time this page is displayed (after the web server sends out the page)
// do not attempt to verify results of this routine by displaying something in the page
// (because the display of the page has already occurred by the time this routine runs)
//**************************************************************************************************
protected void Page_UnLoad(Object sender, EventArgs e)
{
base.srPage_UnLoad2_FPStd(strThisPageURL);
}
protected void btnContactUs_Click(Object sender, EventArgs e)
{
clsFdnWebCS.stcAddToSsttEvnLog2(strThisPageURL, clsFdnWebCS.stcstrfctGetCtrlID(sender as Control) + "_Click", "85", ref
base.strbldrEvtLogBase);
if (Session["ssv_UVPTriggerURL"] != null)
{
Session["ssv_UVPTriggerURL2Use"] = Session["ssv_UVPTriggerURL"].ToString();
Session["ssv_UVPTriggerImage2Use"] = Session["ssv_UVPTriggerImage"].ToString();
}
Response.Redirect(ConfigurationManager.AppSettings["apkContactMePage"].ToString());
}
protected void btnCheckIn2_Click(Object sender, EventArgs e)
{
clsFdnWebCS.stcAddToSsttEvnLog2(strThisPageURL, clsFdnWebCS.stcstrfctGetCtrlID(sender as Control) + "_Click", "85", ref
base.strbldrEvtLogBase);
Response.Redirect(ConfigurationManager.AppSettings["apkContactRegistrationPage"]);
}
protected void btnBack1_Click(Object sender, EventArgs e)
{
clsFdnWebCS.stcAddToSsttEvnLog2(strThisPageURL, clsFdnWebCS.stcstrfctGetCtrlID(sender as Control) + "_Click", "85", ref
base.strbldrEvtLogBase);
clsStdPageNavOnlyCS.stcRedirectToPreviousPage(strThisPageURL, ref arrlstPagesVisited, ref arrlstPagesVisitedLastControl);
}
protected void lnkbtnRegister_Click(Object sender, EventArgs e)
{
clsFdnWebCS.stcAddToSsttEvnLog2(strThisPageURL, clsFdnWebCS.stcstrfctGetCtrlID(sender as Control) + "_Click", "85", ref
base.strbldrEvtLogBase);
Response.Redirect(ConfigurationManager.AppSettings["apkContactRegistrationPage"]);
}
protected void lnkbtnSignIn_Click(Object sender, EventArgs e)
{
clsFdnWebCS.stcAddToSsttEvnLog2(strThisPageURL, clsFdnWebCS.stcstrfctGetCtrlID(sender as Control) + "_Click", "85", ref
base.strbldrEvtLogBase);
Response.Redirect(nsFdnAnyCtxCS10.clsFdnAnyCtxCS10.strpropLogInPageName);
}
protected void lnkbtnUpdateMyContactInfo_Click(Object sender, EventArgs e)
{
clsFdnWebCS.stcAddToSsttEvnLog2(strThisPageURL, clsFdnWebCS.stcstrfctGetCtrlID(sender as Control) + "_Click", "85", ref
base.strbldrEvtLogBase);
Response.Redirect(ConfigurationManager.AppSettings["apkContactRegistrationPage"]);
}
protected void lnkbtnPlay1320ConverenceRoomVideosMP4_Click(Object sender, EventArgs e)
{
base.srStdDigitalResourceAccessWrapper(strThisPageURL, sender, "_Click", "*StandardResourceAccessFromTemp");
}
protected void imgbtnPlay1320ConverenceRoomVideosMP4_Click(Object sender, ImageClickEventArgs e)
{
imgbtnPlay1320ConverenceRoomVideosMP4.Focus();
base.srStdDigitalResourceAccessWrapper(strThisPageURL, sender, "_Click", "*StandardResourceAccessFromTemp");
}
protected void lnkbtnPlayUnboxingTegratecsNewIBMPower9TowerModelServerMP4_Click(Object sender, EventArgs e)
{
base.srStdDigitalResourceAccessWrapper(strThisPageURL, sender, "_Click", "*StandardResourceAccessFromTemp");
}
protected void imgbtnPlayUnboxingTegratecsNewIBMPower9TowerModelServerMP4_Click(Object sender, ImageClickEventArgs e)
{
imgbtnPlayUnboxingTegratecsNewIBMPower9TowerModelServerMP4.Focus();
base.srStdDigitalResourceAccessWrapper(strThisPageURL, sender, "_Click", "*StandardResourceAccessFromTemp");
}
protected void lnkbtnPlayUnveilingTegratecsNewIBMPower9TowerModelServerMP4_Click(Object sender, EventArgs e)
{
base.srStdDigitalResourceAccessWrapper(strThisPageURL, sender, "_Click", "*StandardResourceAccessFromTemp");
}
protected void imgbtnPlayUnveilingTegratecsNewIBMPower9TowerModelServerMP4_Click(Object sender, ImageClickEventArgs e)
{
imgbtnPlayUnveilingTegratecsNewIBMPower9TowerModelServerMP4.Focus();
base.srStdDigitalResourceAccessWrapper(strThisPageURL, sender, "_Click", "*StandardResourceAccessFromTemp");
}
// Take over for master page message box update panel
// Find reference to the pnlMsgBox object
// Record error acknowledgment/override within session variable based on error message text
// Reset error highlighting
protected void btnMsgBoxOKFromMasterPage(Object sender, EventArgs e, String strErrMsg)
{
clsFdnWebCS.stcAddToSsttEvnLog2(strThisPageURL, clsFdnWebCS.stcstrfctGetCtrlID(sender as Control) + "_Click", "85", ref base.strbldrEvtLogBase);
System.Web.UI.Control ctrlControlObjRef = new Control();
base.srGetControlObjectReference_FPStd("pnlMsgBox",
this.Page as System.Web.UI.Control, ref ctrlControlObjRef);
System.Web.UI.WebControls.Panel pnlID = new System.Web.UI.WebControls.Panel();
pnlID = ctrlControlObjRef as System.Web.UI.WebControls.Panel;
pnlID.Enabled = false;
pnlID.Visible = false;
// re-focus on button that originally triggered the error
if (ViewState["vsv_strLastControlFocus"] != null)
{
System.Web.UI.Control webuictrlObject = new Control();
base.srGetAnyWebUIControlObjRef_FPStd(ViewState["vsv_strLastControlFocus"].ToString(), ref webuictrlObject);
webuictrlObject.Focus();
}
}
}
}