Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Tools\AS\ASRoute.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ASRoute.aspx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Tools.AS.ASRoute" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <%= Import.ScriptTheme("js/jquery.1.9.js")%> <title></title> </head> <body> <% if (SettingGroup.RouteAS == true && CookieGroup.RouteAS == null) { var html = ""; IList<AVA.ResourcesPlatform.Model.Pub.AgentServer> list = null; if (System.Web.HttpRuntime.Cache["MyAgentServerTestListAgentServer"] != null) { list = System.Web.HttpRuntime.Cache["MyAgentServerTestListAgentServer"] as IList<AVA.ResourcesPlatform.Model.Pub.AgentServer>; } else { list = CreateInstance.AgentServerDao.GetAll(); System.Web.HttpRuntime.Cache.Insert("MyAgentServerTestListAgentServer", list, null, DateTime.Now.AddSeconds(3600), TimeSpan.Zero); } var random = new Random().Next(1, 10000); foreach (var item in list) { var web = item.IPAddress; if (web[web.Length - 1] == '/') { web = web.Substring(0, web.Length - 1); } var imageUrl = web + "/Images/Download.jpg"; var image = new HtmlImg(imageUrl + "?time=" + random) { OnLoad = "MyAgentServerTestComplete('" + item.Guid + "')" }; html += image.ToString(); } %> <%= html %> <script type="text/javascript"> var MyAgentServerTestGuid = ""; function MyAgentServerTestComplete(guid) { if (MyAgentServerTestGuid.length == 0) { MyAgentServerTestGuid = guid; //alert(MyAgentServerTestGuid); //???Cookie //????? $.ajax({ type: 'POST', url: "ASRouteListen.aspx", data: "RouteASGuid=" + MyAgentServerTestGuid, async: true, dataType: 'html', success: function (result) { //alert(result); //alert(result.Html=="continue"); if (result == "continue") { window.location.href = window.location.href; } }, }); } } function getCookie(c_name) { if (document.cookie.length > 0) {????//?????ookie????????????return "" c_start = document.cookie.indexOf(c_name + "=")????//???String?????ndexOf()????????ookie??????????????? -1???? if (c_start != -1) { c_start = c_start + c_name.length + 1????//???????+1?????????"="???????????????cookie?????????? c_end = document.cookie.indexOf(";", c_start)????//?????????indexOf()???????????????????????????????????????????????...??????????????????????????????????????????????????";"???????????? if (c_end == -1) c_end = document.cookie.length return unescape(document.cookie.substring(c_start, c_end))????//???substring()?????????????unescape()??????escape()?????????????????????????????????????????????????????????ookie?????? } } return "" } </script> <% } %> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de