public void EnsureDataBound ()
 {
     Poker p = new Poker ();
     p.DataSourceID = "DataSourceID";
     p.SetRequiresDataBinding (true);
     p.DoEnsureDataBound ();
 }
Example #2
0
        public static void Initialized2_Load(Page p)
        {
            Poker c = (Poker)p.Form.Controls [0];

            Assert.IsTrue(c.GetInitialized(), "Initialized_Load");
            Assert.IsTrue(c.GetRequiresDataBinding(), "RequiresDataBinding_Load");
            c.SetRequiresDataBinding(false);
        }
Example #3
0
        public void EnsureDataBound()
        {
            Page p = new Page();

            ObjectDataSource ods = new ObjectDataSource(typeof(Control).FullName, "ToString");

            ods.ID = "ObjectDataSource1";
            p.Controls.Add(ods);

            Poker c = new Poker();

            c.DataSourceID = "ObjectDataSource1";
            c.SetRequiresDataBinding(true);
            p.Controls.Add(c);

            c.DoEnsureDataBound();
        }
		public void EnsureDataBound ()
		{
			Poker p = new Poker ();
			p.DataSourceID = "DataSourceID";
			p.SetRequiresDataBinding (true);
			p.DoEnsureDataBound ();
		}
Example #5
0
		public void EnsureDataBound ()
		{
			Page p = new Page ();

			ObjectDataSource ods = new ObjectDataSource (typeof (Control).FullName, "ToString");
			ods.ID = "ObjectDataSource1";
			p.Controls.Add (ods);

			Poker c = new Poker ();
			c.DataSourceID = "ObjectDataSource1";
			c.SetRequiresDataBinding (true);
			p.Controls.Add (c);
			
			c.DoEnsureDataBound ();
		}