コード例 #1
0
 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>");
 }
コード例 #2
0
        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>");
        }