Adding literal content to webcontrol via editor

Discussion in 'ASP .Net Building Controls' started by Memi Lavi, Aug 30, 2003.

  1. Memi Lavi

    Memi Lavi Guest

    Hi Experts.

    I developed a menu webcontrol, which can be constrcuted by inline XML,
    something like that:
    <cc1:menu runat=server id=....>
    <menuItem text="text1" href="http://myserver/mypage.aspx"/>
    <menuItem text="text2" href="http://myserver/mypage2.aspx">
    <menuItem text="text3" href="http://myserver/mypage3.aspx"/>
    </menuItem>
    </cc1:menu>

    I developed a custom editor (derived from UITypeEditor) which displays
    a form with convenient UI to create this structure. Problem is, the
    editor should be attached to a specific property (using the Editor
    attribute), but the inline XML is not a property, but an inner content
    of the control.

    I've tried to use something like that in the EditValue method:

    Ctype(provider.instance,Menu).controls.add(new
    LiteralControl(strMyXML))

    but this did not affect the source code.

    How can that be done? The inline XML is not a specific property, but a
    child content of the control.

    Thanks!!
    Memi Lavi, Aug 30, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest
    Replies:
    2
    Views:
    729
  2. Stylus Studio
    Replies:
    0
    Views:
    649
    Stylus Studio
    Aug 3, 2004
  3. hazz
    Replies:
    6
    Views:
    49,525
    SkyUCHC
    Jun 9, 2010
  4. Steven

    Adding a WebControl to a WebControl

    Steven, Oct 13, 2008, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    114
    Steven
    Oct 13, 2008
  5. Anonieko Ramos

    What's wrong with rpc-literal? Why use doc-literal?

    Anonieko Ramos, Sep 27, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    371
    Anonieko Ramos
    Sep 27, 2004
Loading...

Share This Page