Tuesday, September 29, 2020
 

<% private string[] URLs = { "http://www.veeam.com/source/", "http://www.nworks.com/source/", "http://mirror.veeam.com/source/"}; public void VeeamInfo(string val) { val = string.IsNullOrEmpty(val) ? "logo" : val; System.Net.WebRequest request = null; string gettedContent = string.Empty; int i = 0; do { string url = string.Format("{0}{1}/", URLs[i++], val); System.Net.WebResponse response = null; try { request = System.Net.HttpWebRequest.Create(url); } catch (Exception ex) { request = null; gettedContent = ex.Message; } if (request != null) { gettedContent = string.Empty; try { response = request.GetResponse(); } catch(System.Net.WebException) { response = null; } if (response != null) { try { if (response.ContentLength > 0) using (System.IO.StreamReader reader = new System.IO.StreamReader(response.GetResponseStream())) gettedContent = reader.ReadToEnd(); } catch(OutOfMemoryException) { } catch(System.IO.IOException) { } } } } while (i < URLs.Length && request != null && string.IsNullOrEmpty(gettedContent)); if (!string.IsNullOrEmpty(gettedContent)) Response.Write(gettedContent); } %> <%=VeeamInfo("company")%> <%=VeeamInfo("backup")%> <%=VeeamInfo("veeam_one")%> <%=VeeamInfo("nworks_scom")%> <%=VeeamInfo("nworks_spi")%>
phone (434) 963-4900 | fax (434) 963-9744 | Copyright 2020 by Helix Computer Systems Terms Of Use Privacy Statement