protected void Page_Load(object sender, EventArgs e) { PageTitle = Localization.GetString("CustomerProductSales"); PageMessageBox = ucMessageBox; if (Request.Params["pid"] != null) { ProductId = Request.Params["pid"]; } else { PageMessageBox.ShowError(Localization.GetString("MissingParameters")); } }
protected void ShowMessage(string message, ErrorTypes type) { switch (type) { case ErrorTypes.Ok: PageMessageBox.ShowOk(message); break; case ErrorTypes.Info: PageMessageBox.ShowInformation(message); break; case ErrorTypes.Error: PageMessageBox.ShowError(message); break; case ErrorTypes.Warning: PageMessageBox.ShowWarning(message); break; } }
protected void Page_Load(object sender, EventArgs e) { PageMessageBox.ShowError(SettingsHelper.ErrorPageHeader); }