server control with collection

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default server control with collection

    Hello,

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

    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?

    Thanks!
    mr dropdown Guest

  2. Similar Questions and Discussions

    1. Collection Property of Another Custom Server Control
      Hi, I read more and figured out how to build what I needed: <cc> <item></item> <item></item> </cc> when <item> is an editable control in...
    2. server control collection with several types of properties
      Is it possible to implement a server control that will look like this: <just:control> <columns> <columnTypeA id=1></columnTypeA> <columnTypeA...
    3. Web Form Designer deleting collection markup on Custom Server Control
      I am trying to implement a custom server control which exposes a collection and uses the ParseChildrenAttribute to populate it from child elements...
    4. Server Control using a Collection
      Ok I am brand new at C#. I am attempting to build a server control that contains a collection. Trouble is when I place my control on my page and...
    5. Server Control Collection Properties Solutions,Problems MVP Advice Requested
      I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the problems that I have encountered...
  3. #2

    Default Re: server control with collection

    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:

    [url]http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet.buildingc ontrols/browse_thread/thread/b849e716c697def2/5d299093bc9ba228#5d299093bc9ba228[/url]

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

    Mike MacMillan


    mr dropdown wrote:
    > Hello,
    >
    > I wrote a simple server control from a sample I found on the web in the
    > following URL: [url]http://west-wind.com/weblog/posts/200.aspx[/url]
    >
    > 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?
    >
    > Thanks!
    Mike MacMillan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139