using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class admin_fileupload_index : System.Web.UI.Page { string scc = ConfigurationManager.AppSettings["shopCarCode"].ToString(); protected void Page_Load(object sender, EventArgs e) { MyWeb.admin admin = new MyWeb.admin(); if (MyWeb.admin.chkAdmIP && (MyWeb.admin.chkTwIP || MyWeb.admin.chkAdmIP_Enable) && admin.isLoign()) { if (admin.info.login_ip != MyWeb.admin.MyIP) { Response.Clear(); Response.StatusCode = 404; Response.End(); } HttpBrowserCapabilities hbc = Request.Browser; //Response.Write(hbc.Browser); if (hbc.Browser.IndexOf("InternetExplorer") > -1 | hbc.Browser.ToUpper().IndexOf("IE") > -1) { MultiView1.ActiveViewIndex = 0; } else { MultiView1.ActiveViewIndex = 1; } } else { Response.Clear(); Response.StatusCode = 404; Response.End(); } } }