D
Dirk Meusel
Hi,
Background:
I wrote a custom server control with a public property. Everything
works perfekt when I use that server control as following:
<DM:Visitenkarte id="Visitenkarte1" runat="server"
KontaktID="1"></DM:Visitenkarte>
Problem:
I would like to use my control within another. So, I thought of using
something like to receive in the public KontaktID a value from the
container control:
<DM:Visitenkarte id="Visitenkarte1" runat="server" KontaktID="<%#
Container.Dataitem("kontaktID") %>"></DM:Visitenkarte>
Question:
How can I manipulate my custom server control to receive the data from
the container control?
Dirk
Background:
I wrote a custom server control with a public property. Everything
works perfekt when I use that server control as following:
<DM:Visitenkarte id="Visitenkarte1" runat="server"
KontaktID="1"></DM:Visitenkarte>
Problem:
I would like to use my control within another. So, I thought of using
something like to receive in the public KontaktID a value from the
container control:
<DM:Visitenkarte id="Visitenkarte1" runat="server" KontaktID="<%#
Container.Dataitem("kontaktID") %>"></DM:Visitenkarte>
Question:
How can I manipulate my custom server control to receive the data from
the container control?
Dirk