Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Control\RouteAS.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RouteAS.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.RouteAS" %> //??????????????? ??????????????????????????????????????????????RouteASGuid={?????uid}??outeASClear=1???????? < <% if (SettingGroup.RouteAS == true) { 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(); } %> <div style="display: none"> <%= html %> </div> <script type="text/javascript"> function SendAgentServerTestComplete(guid) { //????? $.ajax({ type: 'POST', url: "/ajax.aspx", data: "/Tools/AS/ASRouteListen.aspx.aspx?RouteASGuid??outeASClear=1&RouteASGuid=" + guid, async: true, dataType: 'json', success: function (result) { //alert(result.Html=="continue"); if (result == "continue") { } else { //????????? } }, }); } var MyAgentServerTestGuid = ""; function MyAgentServerTestComplete(guid) { if (MyAgentServerTestGuid.length == 0) { MyAgentServerTestGuid = guid; alert(MyAgentServerTestGuid); } } </script> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de