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

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
 
D

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top