using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using GZTW.AyaNova.BLL; public partial class _Default : System.Web.UI.Page { //http://geekswithblogs.net/ranganh/archive/2005/04/25/37635.aspx //protected System.Web.UI.HtmlControls.HtmlGenericControl cframe; protected void Page_Load(object sender, EventArgs e) { //case 1651 string sIE9ForceCompatibility = System.Configuration.ConfigurationManager.AppSettings["IE9ForceCompatbilityMode"]; if (!string.IsNullOrWhiteSpace(sIE9ForceCompatibility)) { if (sIE9ForceCompatibility.ToLower() == "true") { HtmlMeta meta = new HtmlMeta(); meta.HttpEquiv = "X-UA-Compatible"; meta.Content = "IE=8"; this.Header.Controls.Add(meta); } } if (Util.CurrentUser.IsClientOrHeadOfficeAccount) { Util.Denied(Context); } //Case 860 if (!(AyaBizUtils.Right("Object.ScheduleForm") > 1)) { HtmlControl cf = (HtmlControl)this.FindControl("cframe"); cf.Attributes["src"] = "maingrid.aspx?l=SearchResultList"; } } }