protected void Page_Load(object sender, EventArgs e) { AuthenticateUser(); intProfile = Int32.Parse(Request.Cookies["profileid"].Value); oServiceEditor = new ServiceEditor(intProfile, dsnServiceEditor); oUser = new Users(intProfile, dsn); oService = new Services(intProfile, dsn); Int32.TryParse(Request.QueryString["serviceid"], out intService); Int32.TryParse(Request.QueryString["nextservice"], out intNextService); if (Request.QueryString["saved"] != null) { trSaved.Visible = true; } if (!IsPostBack) { if (intService > 0 && intNextService > 0) { rptView.DataSource = oServiceEditor.GetConfigsWorkflow(intService, intNextService); rptView.DataBind(); lblNone.Visible = (rptView.Items.Count == 0); foreach (RepeaterItem ri in rptView.Items) { Label lblService = (Label)ri.FindControl("lblService"); int intServiceBegin = 0; if (Int32.TryParse(lblService.Text, out intServiceBegin) == true) { string strWorkflowTitle = oService.Get(intServiceBegin, "workflow_title"); if (strWorkflowTitle != "") { lblService.Text = strWorkflowTitle; } else { lblService.Text = oService.Get(intServiceBegin, "name"); } } } } chkInclude.Attributes.Add("onclick", "CheckListAll(this,'tblChecks');"); chkEditable.Attributes.Add("onclick", "CheckListAll(this,'tblChecks');"); } }