Groups | Blog | Home
all groups > asp.net building controls > december 2005 >

asp.net building controls : server control with collection


mr dropdown
12/25/2005 2:08:02 PM
Hello,

I wrote a simple server control from a sample I found on the web in the
following URL: http://west-wind.com/weblog/posts/200.aspx

The control has the following structure:
<myCtl:main>
<Columns>
<ColumnItem id="a"></ColumnItem>
<ColumnItem id="b"></ColumnItem>
</Columns>
</myCtl:main>

The problem is that in the collection method used here requires that the tag
of the collection control (ColumnItem) will also include the tag prefix of
the main control so that structure must look like this:
<myCtl:main>
<Columns>
<myCtl:ColumnItem id="a"></myCtl:ColumnItem>
<myCtl:ColumnItem id="b"></myCtl:ColumnItem>
</Columns>
</myCtl:main>

Is there any way to bypass this annoying thing?

Mike MacMillan
12/28/2005 12:36:49 PM
mr. dropdown,
you don't need the custom namespace notation in the html if you are
using your own controlBuilders(ie, parsing custom html tags). see my
post to your previous message here:

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet.buildingcontrols/browse_thread/thread/b849e716c697def2/5d299093bc9ba228#5d299093bc9ba228

let me know if you're having issues getting things to work.

Mike MacMillan


[quoted text, click to view]
AddThis Social Bookmark Button