/// <summary> /// Creates controls for the web application to be added /// </summary> /// <param name="wa">Web Application to be added</param> private void AddNewWebApplication(SPWebApplication wa, int i) { String WebAppName = GetWebAppName(wa); GSBLabel lblWebAppName = new GSBLabel(WebAppName); GSBLabel lblPath = new GSBLabel(wa.IisSettings[0].Path.ToString());//port lblPath.Name = PATH; tlpWebAppEntry.Controls.Add(lblWebAppName, 0, i); tlpWebAppEntry.Controls.Add(lblPath, 1, i); //create the additional "Edit" button for editing the individual web app config for GSA if (isInstaller == false) { GSBEditAppButton btnEdit = new GSBEditAppButton(); btnEdit.WebConfigPath = wa.IisSettings[0].Path.ToString(); tlpWebAppEntry.Controls.Add(btnEdit, 2, i); } }