Esempio n. 1
0
        public static SimpleDataObject PrepareData()
        {
            SimpleDataObject data = new SimpleDataObject();

            data.StringInput = "Test Object";

            return(data);
        }
        protected void save_Click(object sender, EventArgs e)
        {
            this.bindingControl.CollectData(true);

            StringBuilder strB = new StringBuilder();

            StringWriter writer = new StringWriter(strB);

            SimpleDataObject data = (SimpleDataObject)this.bindingControl.Data;

            writer.WriteLine("StringInput: {0}", data.StringInput);
            writer.WriteLine("DateInput: {0}", data.DateInput);

            serverInfo.Text = HttpUtility.HtmlEncode(strB.ToString());
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.bindingControl.Data = SimpleDataObject.PrepareData();
 }