public static void AppendDataView(this System.Text.StringBuilder sbHtml, DataView control, FormActionViewModel vm) { AppendString(sbHtml, "<form "); AppendString(sbHtml, control.GetBaseAttribtes()); AppendString(sbHtml, " method=\"post\">"); AppendGridBox(sbHtml, control, vm); AppendString(sbHtml, "</form>"); }
public void CreateDataView(System.Text.StringBuilder sbHtml, DataView model, object dataContext = null) { AppendString(sbHtml, "<form "); AppendString(sbHtml, model.GetBaseAttribtes()); AppendString(sbHtml, " method=\"post\">"); CreateGridBox(sbHtml, model, dataContext); AppendString(sbHtml, "</form>"); }