<uc1:UsercontrolTest ID="UsercontrolTest" runat="server" Hello="World"/>
You see, Hello is not a property of UsercontrolTest class, but we need to detect and get that attribute. Are we allowed to do that? Thanks.
<uc1:UsercontrolTest ID="UsercontrolTest" runat="server" Hello="World"/>
You see, Hello is not a property of UsercontrolTest class, but we need to detect and get that attribute. Are we allowed to do that? Thanks.
Does the following not work?
UsercontrolTest.Attributes("Hello")
EDIT:
UserControl.Attributes : Gets a collection of all attribute name and value pairs declared in the user control tag within the .aspx file.