G
Guest
I'm wondering if it's possible to do the following in ASP.NET 2.0. I want to
do the following simultaneously. I suspect its possible, but I also suspect
that I may need to do different things at different times in the page
lifecyle, and would appreciate some guidance.
a) call an ASP.NET user control in code (I know how to do this, subbing in
for a ASP.NET placeholder control )
b) interrogate my database for some information at runtime and dynamically
populate the properties of the user control using the DB values
(individually, I know how to do this too)
c) "inject" the code that comprises the user control into the middle of
another string I'm pulling out from the DB at runtime.
The real-world application here is a content mangement scenario: imagine a
user control that could hold a "mug shot" of a person and some related
information, and you wanted this user control to appear midway through the
body of a text article.
Is this possible, or not?
Thanks,
-KF
do the following simultaneously. I suspect its possible, but I also suspect
that I may need to do different things at different times in the page
lifecyle, and would appreciate some guidance.
a) call an ASP.NET user control in code (I know how to do this, subbing in
for a ASP.NET placeholder control )
b) interrogate my database for some information at runtime and dynamically
populate the properties of the user control using the DB values
(individually, I know how to do this too)
c) "inject" the code that comprises the user control into the middle of
another string I'm pulling out from the DB at runtime.
The real-world application here is a content mangement scenario: imagine a
user control that could hold a "mug shot" of a person and some related
information, and you wanted this user control to appear midway through the
body of a text article.
Is this possible, or not?
Thanks,
-KF