// //////////////////////////////////////////////////////////////////////// // EVENTS // protected void Page_Load(object sender, EventArgs e) { // Register client scripts this.RegisterClientScripts(); if (!IsPostBack) { // Security check // Tag Page hdfCompanyId.Value = Session["companyID"].ToString(); hdfContactId.Value = Request.QueryString["contact_id"].ToString(); // Initialize viewstate variables Session.Remove("phonesDummy"); phoneTDS = new PhoneTDS(); // Load data LoadFullName(); LoadAddress(); LoadPhones(); // Store dataset Session["phoneTDS"] = phoneTDS; Session["phone"] = phoneTDS.Phone; } else { // Restore dataset phoneTDS = (PhoneTDS)Session["phoneTDS"]; phone = phoneTDS.Phone; } }
/// <summary> /// InitData /// </summary> protected override void InitData() { _data = new PhoneTDS(); }