Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Adding literal content to webcontrol via editor

Thread Tools

Adding literal content to webcontrol via editor

Memi Lavi
Posts: n/a
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"/>

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:


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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error: Only Content controls are allowed directly in a content page that contains Content controls. hazz ASP .Net 6 06-09-2010 01:54 PM
Adding a WebControl to a WebControl Steven ASP .Net Web Controls 1 10-13-2008 09:37 PM
What's wrong with rpc-literal? Why use doc-literal? Anonieko Ramos ASP .Net Web Services 0 09-27-2004 09:06 AM
ANN: New low-cost XML Editor, XSLT Editor, XSLT Debugger, DTD/Schema Editor Stylus Studio Java 0 08-03-2004 03:53 PM