Circular references are not supported

D

Dan C Douglas

I have a user control, and I would like to create another instance of the
user control inside the same user control.

I am doing this because the user control has a datagrid, and in the datagrid
I instantiate a reference to a new instance of the same ascx file that I am
currently on and place it in the datagrid. I am recursing through records
and only create a new instance if sub-records exist for the record I am
currently on in the datagrid.

What do you guys suggest as a workaround? I'd like to code it to allow an
unlimited amount of sub levels to be shown in the hierarchy.

Any ideas on how to get around this issue ?

Thanks,

Dan
 
S

Steve C. Orr, MCSD

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top