Passing data to a UC programitcally...does the UC need to be dynamically loaded?

  • Thread starter Thread starter darrel
  • Start date Start date
D

darrel

If I want to pass data to a UC via codebehind on the page, does the UC also
have to be dynamically loaded, or can I pass data progamatically to a UC
that is loaded via the ASPX page (using a UC tag)?

-Darrel
 
if you setup properties for it you can pass it data however you wishhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconexposingpageletproperties.asp

Looking at that page, it looks like it still dynamically loads the control:

Dim MyMessage As Control = LoadControl("uc.ascx")

-Darrel
 
Back
Top