protected void Page_Load(object sender, System.EventArgs e) { if (Request.UserAgent.Contains("MSIE 6") || Request.UserAgent.Contains("MSIE 7")) { recaptcha.EmbedJavascript = true; } if(! IsPostBack) { //int[] lsIDs = AdministrativeAPI.ListLabServerIDs(); lblRevision.Text = "<!-- " + iLabGlobal.Release + " -->"; LabDB service = new LabDB(); LabAppInfo[] labs = service.GetLabApps(); ddlWhichLab.Items.Add("System-wide error"); String optList = ConfigurationManager.AppSettings["helpOptions"]; if((optList != null)&& (optList.Length >0)){ char [] delimiter = {','}; String [] options =optList.Split(delimiter,100); for(int i =0;i< options.Length;i++) { ddlWhichLab.Items.Add(new ListItem(options[i],"0")); } if(options.Length > 0) { ddlWhichLab.Items[0].Selected = false; } } foreach (LabAppInfo p in labs) { //if(l.labServerID >0) ddlWhichLab.Items.Add(new ListItem(p.application,p.appID.ToString())); } } }
protected void Page_Load(object sender, System.EventArgs e) { if(! IsPostBack) { //int[] lsIDs = AdministrativeAPI.ListLabServerIDs(); LabDB service = new LabDB(); LabAppInfo[] labs = service.GetLabApps(); ddlWhichLab.Items.Add("System-wide error"); String optList = ConfigurationManager.AppSettings["helpOptions"]; if((optList != null)&& (optList.Length >0)){ char [] delimiter = {','}; String [] options =optList.Split(delimiter,100); for(int i =0;i< options.Length;i++) { ddlWhichLab.Items.Add(new ListItem(options[i],"0")); } if(options.Length > 0) { ddlWhichLab.Items[0].Selected = false; } } foreach (LabAppInfo p in labs) { //if(l.labServerID >0) ddlWhichLab.Items.Add(new ListItem(p.application,p.appID.ToString())); } } }