|
/********************************************************************
* FulcrumWeb RAD Framework - Fulcrum of your business *
* Copyright (c) 2002-2009 FulcrumWeb, ALL RIGHTS RESERVED *
* *
* THE SOURCE CODE CONTAINED WITHIN THIS FILE AND ALL RELATED *
* FILES OR ANY PORTION OF ITS CONTENTS SHALL AT NO TIME BE *
* COPIED, TRANSFERRED, SOLD, DISTRIBUTED, OR OTHERWISE MADE *
* AVAILABLE TO OTHER INDIVIDUALS WITHOUT EXPRESS WRITTEN CONSENT *
* AND PERMISSION FROM FULCRUMWEB. CONSULT THE END USER LICENSE *
* AGREEMENT FOR INFORMATION ON ADDITIONAL RESTRICTIONS. *
********************************************************************/
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Framework.Remote;
namespace App.Silverlight.Server
{
/// <summary>
/// Default application Page.
/// </summary>
public partial class Default : Page
{
/// <summary>
/// Handles Load event.
/// </summary>
protected void Page_Load(object sender, EventArgs e)
{
if(IsPostBack && !string.IsNullOrEmpty(pingErrorMessage.Value) )
{
Application["PingErrorMessage"] = pingErrorMessage.Value;
Application["PingErrorStaclTrace"] = pingErrorStackTrace.Value;
pingErrorMessage.Value = string.Empty;
pingErrorStackTrace.Value = string.Empty;
HttpContext.Current.Server.Transfer("~/ErrorPages/WebservicePingError.aspx");
}
OnAppStartErrorsChecker mOnAppStartChecker = new OnAppStartErrorsChecker();
mOnAppStartChecker.CheckErrors();
StringBuilder settings = new StringBuilder();
settings.Append("<settings>");
foreach (string key in ConfigurationManager.AppSettings)
{
settings.Append(string.Format("<add key=\"{0}\" value=\"{1}\" />", key, ConfigurationManager.AppSettings[key]));
}
settings.Append("</settings>");
byte[] bytes = Encoding.UTF8.GetBytes(settings.ToString());
config.Value = Convert.ToBase64String(bytes);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.