Good day guys!

I just want a little help on how to reference a repeater control in a function. Im using My code below:

private void Load_Childrean_byTypeID(int TypeID, **repeatername reference here**)
            SqlDataAdapter mycommand = new SqlDataAdapter("Select Id, FoamType_ChildName, ChildIcon_ClassName, ParentTypeID From tbl_ProductType_Children Where ParentTypeID = " + TypeID, Conn);
            DataSet ds = new DataSet();
            repeatername.DataSource = ds;

A repeater reference should be put next on the TypeID specified in bold text.

Thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.