protected void Page_Load(object sender, EventArgs e) { Permissions.MemRedirect(Page, Permissions.redirUrl); AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass)); if (!IsPostBack) { ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('暂未开放.');window.location.href='index.aspx';</script>", false); var aa = Cxhyqx.GetCxhyqx(Session["member"].ToString(), 1); if (!aa) { //Page.ClientScript.RegisterStartupScript(GetType(), "", "<script language='javascript'>alert('设置成功!');window.location.href='AuthoritySet.aspx'</script>"); ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + GetTran("000847", "对不起,您没有权限!") + "');window.location.href='index.aspx';</script>", false); } IOpenClient client = new DefaultOpenClient(BMEshenghuo.serverUrl, BMEshenghuo.appKey, BMEshenghuo.appSecret); CoachStartStationsListRequest req = new CoachStartStationsListRequest(); CoachStartStationsListResponse response = client.Execute(req, BMEshenghuo.accessToken); if (!response.IsError) { qdz.DataSource = response.Stations; qdz.DataTextField = "Province"; qdz.DataValueField = "Province"; qdz.DataBind(); qrsf.Visible = true; } } Translations(); }
protected void Page_Load(object sender, EventArgs e) { Permissions.MemRedirect(Page, Permissions.redirUrl); AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass)); var aa = Cxhyqx.GetCxhyqx(Session["member"].ToString(), 1); ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('更新调整,暂未开放.');window.location.href='index.aspx';</script>", false); if (!aa) { ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + GetTran("000847", "对不起,您没有权限!") + "');window.location.href='index.aspx';</script>", false); } Translations(); }