Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

33 lines
882 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MonoTests.DataObjects;
using MonoTests.Common;
using MonoTests.SystemWeb.Framework;
using MonoTests.DataSource;
public partial class DynamicValidator_02 : TestsBasePage <TestDataContext4>
{
protected override void PopulateDataSource (DynamicDataSource ds)
{
var container = ds.DataContainerInstance as TestDataContainer<TestDataContext4>;
if (container == null)
return;
List<BazValidationAttributes> foo = container.ContainedTypeInstance.BazValidationAttributes;
foo.Add (new BazValidationAttributes {
Column1 = 0
});
}
protected void Page_Init (object sender, EventArgs e)
{
InitializeDataSource (DynamicDataSource1, "BazValidationAttributesTable");
DynamicDataManager1.RegisterControl (ListView1);
}
}