SoFunction
Updated on 2025-03-04

Nested repeater example sharing


private void function1()
{
= datatable;
();
}

private void function2(object sender,repeateritemeventargs e)

{

//Judge where the inner layer repeater is located in the outer layer repeater (alternating item template, footer template, header template, item template, separatortemplate)

if( == || == )

{

repeater rpt = ("repeater2") as repeater;//Find the inner layer repeater object

datarowview row = (datarowview); //Find the data item associated with the classification repeater

int typeid = convert.toint32(row["id"]);  //Get the id of the populated subclass

= datatable;

();

}
}