private void GenerateConditionStructure(string condition) { if (tblCondition.Rows.Count > 0) { tblCondition.Rows.Clear(); } TriggerMethodInfo info = TriggerManager.GetConditionMethod(condition); ParameterInfo[] paramList = info.InParameters; int i = 0; foreach (ParameterInfo param in paramList) { i++; TableRow tr = new TableRow(); tblCondition.Rows.Add(tr); TableCell td1 = new TableCell(); td1.Width = Unit.Pixel(iLabelColumnWidth - 2); tr.Cells.Add(td1); Label lbl = new Label(); lbl.Text = param.Name + ":"; td1.Controls.Add(lbl); TableCell td2 = new TableCell(); tr.Cells.Add(td2); TextBox txt = new TextBox(); txt.ID = String.Format("txtCond{0}", i); txt.Width = Unit.Percentage(100); td2.Controls.Add(txt); } }