Project Description
These controls have the same capabilities the Windows Forms controls have. With them you can use the two-way databind funcionalities. To use these funcionalities it's easy like Windows Forms is.

After I have searched a lot for Two-Way DataBind controls in Asp.Net I couldn't found them. So I start to creat my own controls. And after I have used them I liked the result.
I think they are very generic for all uses in the moment and easy to use.
Who has already use the DataBindings of the Windows Forms won't has problem to use the controls.
Look the follow example:

class AClass
{
      public int AProperty{get;set;}
}

public APage : Page
{
      AClass c = new AClass();
      public void Page_Load{object sender, EventArgs e)
      {
            // here the c.AProperty has the default value 0
            this.txtTwoWay.DataBindings.Add("Text", c, "AProperty");

            // execute the DataBind of the all controls from the page
            this.ExecuteDataBinds();
      }

      public void button1_Click(object sender, EventArgs e)
      {
             this.ExecuteDataBinds();
             // here the c.AProperty has the value that the txtTwoWay Text is filled
      }
}


Feel free to use and comments.
Thanks.

Last edited Feb 4, 2010 at 12:47 AM by MAGomes, version 3