protected void Page_Load(object sender, EventArgs e) { List <ServicePoint> servicePoints = new List <ServicePoint>(); foreach (RemoteApplication app in RemoteApplication.GetApplications()) { ServicePoint servicePoint = ServicePointManager.FindServicePoint(new Uri(app.RootUrl)); if (!servicePoints.Contains(servicePoint)) { servicePoints.Add(servicePoint); } } ConnectionGridView.DataSource = servicePoints; ConnectionGridView.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { apps = RemoteApplication.GetApplications(); ApplicationsGridView.DataSource = apps; ApplicationsGridView.DataBind(); }