H
hohans
Hi,
First, thanks for viewing my post.
Here is my situation. I want to use a web form to generate something
like shipping labels, e.g. 30 labels in each page. So, I have a
Repeater whose ItemTemplate contains a DataList. DataList's
ItemTemplate contains a PlaceHolder. In that PlaceHolder I need to
dynamically add user controls to it. It could be a ascx with address
info or another ascx with membership info. The thing is no matter
which one, I could have to call LoadControl() in OnItemCreated event
for same ascx file up to as many as the labels needed to print. It
slows down the performance a lot.
My question is, in .NET, you call LoadControl() once, can it be cached
in memory so you don't have to load it physically everytime for
subsequent control?
I understand that it could be done by writing a dynamic ItemTemplate.
The case above is simplified. Let's say what if dynamic ItemTemplate
is not an option? Thank you very much!!
First, thanks for viewing my post.
Here is my situation. I want to use a web form to generate something
like shipping labels, e.g. 30 labels in each page. So, I have a
Repeater whose ItemTemplate contains a DataList. DataList's
ItemTemplate contains a PlaceHolder. In that PlaceHolder I need to
dynamically add user controls to it. It could be a ascx with address
info or another ascx with membership info. The thing is no matter
which one, I could have to call LoadControl() in OnItemCreated event
for same ascx file up to as many as the labels needed to print. It
slows down the performance a lot.
My question is, in .NET, you call LoadControl() once, can it be cached
in memory so you don't have to load it physically everytime for
subsequent control?
I understand that it could be done by writing a dynamic ItemTemplate.
The case above is simplified. Let's say what if dynamic ItemTemplate
is not an option? Thank you very much!!