M
MC D
When I dynamically add a control by doing something like
dim x as control = Page.LoadControl("myControl.ascx")
am I actually loading the control from disk??? I don't really understand why
I can't access the class for the user control directly... in other words
just say:
dim x as new myControl()
(which doesn't generate an error, but it wil not render the UI)
If I'm adding a control dozens of times on a page, is this very
in-efficient?
Thanks for any help!
-D
dim x as control = Page.LoadControl("myControl.ascx")
am I actually loading the control from disk??? I don't really understand why
I can't access the class for the user control directly... in other words
just say:
dim x as new myControl()
(which doesn't generate an error, but it wil not render the UI)
If I'm adding a control dozens of times on a page, is this very
in-efficient?
Thanks for any help!
-D