I have created a user control that implements an ASP:Repeater to build a
table of links w/ an adjustable template.=A0 I want to pass the dataset
to
the repeater through the HTML side of the calling ASPX page.=A0 You
might
be wondering why I'd want to do it this way.=A0 The answer is fairly
simple.=A0 I am building the control for a non-programmer to use.=A0 I
can
teach the end user how to call the control and pass it values but don't
want to try and teach him how to instantiate the control and manipulate
it through code.=A0
Ideally, I would like to implement the control using syntax similar to a
java applet:
<% @Register TagPrefix=3D"MyControl" TagName=3D"Links"
Src=3D"~/Controls/Links.ascx" %>
<MyControl:Links runat=3D"Server">
<Link href=3D"http://">Link Description</Link>
<Link href=3D"http://">Link Description</Link>
</MyControl:Links>
The <Link> tags would cause an arraylist.add() routine to fire adding
the entry to the dataset.
I have a workable solution where I can pass a boundless number of
attributes into the control via the inline parameter passing but that
requires either delimiting the data inside the attribute (I'm using |
delimiters for that) or passing 2 distinct attributes for each link.=A0
I
would be happy to share the code if anyone is interested in this.
-Robert