2 using System.Resources;
\r
4 using System.Configuration;
\r
5 using System.Collections;
\r
7 using System.Web.Security;
\r
9 using System.Web.UI.WebControls;
\r
10 using System.Web.UI.HtmlControls;
\r
12 namespace Mainsoft.Web.AspnetConfig
\r
14 public partial class Util : System.Web.UI.MasterPage
\r
16 bool allowRemoteConfiguration // Default is false
\r
20 if (System.Configuration.ConfigurationSettings.AppSettings["allowRemoteConfiguration"] != null) {
\r
21 return bool.Parse (System.Configuration.ConfigurationSettings.AppSettings["allowRemoteConfiguration"]);
\r
29 public String Backurl
\r
31 get { return ViewState["BackUrl"] == null ? String.Empty : (string) ViewState["BackUrl"]; }
\r
32 set { ViewState["BackUrl"] = value; }
\r
35 protected override void OnInit (EventArgs e)
\r
37 if (!(allowRemoteConfiguration || Request.IsLocal)) {
\r
38 Server.Transfer ("~/aspnetconfig/SecurError.aspx");
\r
45 protected void Page_Load (object sender, EventArgs e)
\r