using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Binding; using Binding.Interfaces; namespace SimpleBinding { public partial class CascadingExample : System.Web.UI.Page, IBindingContainer { private object dataContext = DataHelper.GetDemoAddressViewModel(); public object DataContext { get { return dataContext; } set { dataContext = value; } } protected override void OnLoad(EventArgs e) { //after view state is available but before the onload event which is listened to by the binder this.RegisterForBinding(); base.OnLoad(e); } /// <summary> /// Place breakpoint here and inspect the BindingContext to see if values have been mapped. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_PreRender(object sender, EventArgs e) { } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)