Adding literal content to webcontrol via editor

M

Memi Lavi

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!!
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,823
Latest member
Nadia88

Latest Threads

Top