Foreground:. aspx Program
Background. CS program: protected void objectivecategory2_itemdatabound (Object sender, system. web. UI. webcontrols. repeateritemeventargs e) {dataview DV = new dataview (this. dtcategory); DV. rowfilter = "eloc_iparentid =" + this. dtcategory. rows [E. item. itemindex] ["eloc_iparentid"]. tostring (); repeater temprepeater = (repeater) E. item. findcontrol ("elo_sdescription"); temprepeater. datasource = DV; temprepeater. databind () ;} Note: among them, onitemdatabound = "objectivecategory2_itemdatabound at Layer 1 is an important part, because the repeater web in the layer does not recognize it, and only this specifies the event processing method, to trigger the methods in the background program. Similarly, you can use this method to nest multiple layers and process the events in it. The second point in aspx indicates that the event is in the background program and the access restriction needs to be limited by protected. If private is used, an error message indicating access restriction will appear.