protected void Page_Load(object sender, EventArgs e) { Page.MaintainScrollPositionOnPostBack = true; if (!Page.IsPostBack) { //populate the Billing Specialist and Office Control on the parameter page //accomplished with code behind to add database entries after the hardcoded "All" item bearCode.PopulateListBillingSpecialists(dropDownListBillingSpecialist, errorLogFileName); bearCode.PopulateListLocations(listboxBillingTimekeeperOffice, "timekeeper", errorLogFileName); } //resetCookie session variable is used to reset the scroll position Session["resetCookie"] = "true"; /* * add onFocus to textbox controls on the parameter page. The commands are in the aspx file. */ textboxBillingTkid.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxBillingTkid')"); textboxClient.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxClient')"); RadioButtonListSearchResultsTKID.Attributes.Add("onClick", "RadioButtonToTextBox('RadioButtonListSearchResultsTKID', 'textboxBillingTkid')"); RadioButtonListSearchResultsClient.Attributes.Add("onClick", "RadioButtonToTextBox('RadioButtonListSearchResultsClient', 'textboxClient')"); //Set Tool Tips buttonSubmitTkid.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_SUBMIT_BUTTON + "')"); buttonSubmitTkid.Attributes.Add("onmouseout", "UnTip()"); buttonReportOnly.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_PRINT_BUTTON + "')"); buttonReportOnly.Attributes.Add("onmouseout", "UnTip()"); ImageButtonClient.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_SEARCH_CLIENT_BUTTON + "')"); ImageButtonClient.Attributes.Add("onmouseout", "UnTip()"); ImageButtonTKID.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_SEARCH_TKID_BUTTON + "')"); ImageButtonTKID.Attributes.Add("onmouseout", "UnTip()"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { //populate the Billing Specialist and Office Control on the parameter page //accomplished with code behind to add database entries after the hardcoded "All" item bearCode.PopulateListBillingSpecialists(dropDownListBillingSpecialist, errorLogFileName); bearCode.PopulateListLocations(listboxBillingTimekeeperOffice, "timekeeper", errorLogFileName); } if (Request["Body"] != null) { if (Request["Body"].ToString().Equals("Default")) { TextBoxEmailBodyOpeningLine.Text = VariablesExceptionRates.EMAIL_BODY_OPENING_LINE_DEFAULT; TextBoxEmailBodyOpeningLine.Enabled = false; TextBoxEmailBody.Text = VariablesExceptionRates.EMAIL_BODY_DEFAULT; TextBoxEmailBody.Enabled = false; ListBoxUdf.SelectedValue = "N"; } else if (Request["Body"].ToString().Equals("Alternate")) { TextBoxEmailBodyOpeningLine.Text = VariablesExceptionRates.EMAIL_BODY_OPENING_LINE_ALTERNATE; TextBoxEmailBodyOpeningLine.Enabled = false; TextBoxEmailBody.Text = VariablesExceptionRates.EMAIL_BODY_ALTERNATE; TextBoxEmailBody.Enabled = false; ListBoxUdf.SelectedValue = "Y"; } else if (Request["Body"].ToString().Equals("DefaultRemind")) { TextBoxEmailBodyOpeningLine.Text = VariablesExceptionRates.EMAIL_BODY_OPENING_LINE_REMINDER_DEFAULT; TextBoxEmailBodyOpeningLine.Enabled = false; TextBoxEmailBody.Text = VariablesExceptionRates.EMAIL_BODY_REMINDER_DEFAULT; TextBoxEmailBody.Enabled = false; ListBoxAttorneyReviewed.SelectedValue = "0"; ListBoxAttorneyReviewed.Enabled = false; ListBoxUdf.SelectedValue = "N"; ListBoxFinalized.SelectedValue = "0"; } else if (Request["Body"].ToString().Equals("AlternateRemind")) { TextBoxEmailBodyOpeningLine.Text = VariablesExceptionRates.EMAIL_BODY_OPENING_LINE_REMINDER_ALTERNATE; TextBoxEmailBodyOpeningLine.Enabled = false; TextBoxEmailBody.Text = VariablesExceptionRates.EMAIL_BODY_REMINDER_ALTERNATE; TextBoxEmailBody.Enabled = false; ListBoxAttorneyReviewed.SelectedValue = "0"; ListBoxAttorneyReviewed.Enabled = false; ListBoxUdf.SelectedValue = "Y"; ListBoxFinalized.SelectedValue = "0"; } } }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { GridViewSearchResults.SelectedIndex = -1; } else { Session["defaultColumnWidth1"] = Hidden0.Value.ToString(); Session["defaultColumnWidth2"] = Hidden1.Value.ToString(); Session["defaultColumnWidth3"] = Hidden2.Value.ToString(); Session["defaultColumnWidth4"] = Hidden3.Value.ToString(); Session["defaultColumnWidth5"] = Hidden4.Value.ToString(); Session["defaultColumnWidth6"] = Hidden5.Value.ToString(); Session["defaultColumnWidth7"] = Hidden6.Value.ToString(); Session["defaultColumnWidth8"] = Hidden7.Value.ToString(); Session["defaultColumnWidth9"] = Hidden8.Value.ToString(); Session["defaultColumnWidth10"] = Hidden9.Value.ToString(); Session["defaultColumnWidth11"] = Hidden10.Value.ToString(); Session["defaultColumnWidth12"] = Hidden11.Value.ToString(); Session["defaultColumnWidth13"] = Hidden12.Value.ToString(); Session["defaultColumnWidth14"] = Hidden13.Value.ToString(); Session["defaultColumnWidth15"] = Hidden14.Value.ToString(); Session["defaultColumnWidth16"] = Hidden15.Value.ToString(); bearCode.PopulateListLocations(RadioButtonListOffices, "matter", VariablesSearchToykoClientMatter.ERROR_LOG_FILE_NAME); RadioButtonListOffices.Attributes.Add("onClick", "RadioButtonAppendTextBox('RadioButtonListOffices','TextBoxOffices')"); TextBoxOffices.Attributes.Add("onmouseover", "Tip('" + VariablesSearchToykoClientMatter.TOOLTIP_TEXTBOXOFFICES + "')"); TextBoxOffices.Attributes.Add("onmouseout", "UnTip()"); //ImageButtonResetColumnWidths.Attributes.Add("onmouseover", "Tip('" + VariablesSearchToykoClientMatter.TOOLTIP_RESIZE_COLUMNS + "')"); //ImageButtonResetColumnWidths.Attributes.Add("onmouseout", "UnTip()"); ImageButtonSearch.Attributes.Add("onmouseover", "Tip('" + VariablesSearchToykoClientMatter.TOOLTIP_SEARCH_EXECUTE + "')"); ImageButtonSearch.Attributes.Add("onmouseout", "UnTip()"); } CheckBoxAllOffices.Attributes.Add("onClick", "ToggleOffices()"); }
/// <summary> /// Ran each time the page is loaded /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { LinkButtonUserPreferences.Visible = true; Page.MaintainScrollPositionOnPostBack = true; ///if this is not a postback operation, <br /> ///populate the Billing Specialist and Office Control on the parameter page ///accomplished with code behind to add database entries after the hardcoded "All" item if (!Page.IsPostBack) { bearCode.PopulateListBillingSpecialists(dropDownListBillingSpecialist, errorLogFileName); bearCode.PopulateListLocations(listboxInvoicingAttorneyOffice, "timekeeper", errorLogFileName); PopulateListArrangementCodes(); PopulateListBillingPeriods(); PopulateListPracticeAreas(); } CheckBoxThreshold.Attributes.Add("onClick", "ToggleThreshold()"); ///resetCookie session variable is used to reset the scroll position Session["resetCookie"] = "true"; /** * add onFocus to textbox controls on the parameter page. The commands are in the aspx file. */ textboxBillingTkid.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxBillingTkid')"); textboxInvoiceAtty.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxInvoiceAtty')"); textboxClient.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxClient')"); textboxMatter.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxMatter')"); ///Set Tool Tips buttonSubmitTkid.Attributes.Add("onmouseover", "Tip('" + VariablesBillTracker.TOOLTIP_SUBMIT_BUTTON + "')"); buttonSubmitTkid.Attributes.Add("onmouseout", "UnTip()"); ImageButtonTKID.Attributes.Add("onmouseover", "Tip('" + VariablesBillTracker.TOOLTIP_SEARCH_TKID_BUTTON + "')"); ImageButtonTKID.Attributes.Add("onmouseout", "UnTip()"); }