0

I have seen some templated user controls like:

<uc:Control1 ID="Uc1" runat="server">
    <messagetemplate>a</messagetemplate>
</uc:Control1>

So far so good. But what I want to do is pass parameters to the control like.

<uc:Control1 ID="Uc1" runat="server">
    <messagetemplate>
        <CustomAttribute="Color" Value="Green" />
        <CustomAttribute="Size" Value="Small" />
        <CustomAttribute="Param1" Value="1" />
    </messagetemplate>
</uc:Control1>

Could you please show me a way to this?

Nick Binnet
  • 1,910
  • 7
  • 33
  • 49

1 Answers1

1

There is a short tutorial on the MSDN website. Maybe it helps you a little bit?

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291