private void GenerateActionStructure(string action) { if (String.IsNullOrEmpty(action)) { return; } if (tblCondition.Rows.Count > 0) { tblAction.Rows.Clear(); } TriggerMethodInfo info = TriggerManager.GetActionMethod(action); ParameterInfo[] paramList = info.InParameters; int i = 0; foreach (ParameterInfo param in paramList) { i++; TableRow tr = new TableRow(); tblAction.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("txtAct{0}", i); txt.Width = Unit.Percentage(100); td2.Controls.Add(txt); } }