Intellisense for the children of a Complex Property

A

Adam Tibi

Hi,

I am busing a web custom control with Visual Studio 2005 and I have a
property called :
[Category("Controls")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[NotifyParentProperty(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public DropDownList DropDown {
get {
EnsureChildControls();
return _dropDown;
}
}

The problem is in the intellisense of the XML/XHTML (Source) designer . The
intellisense is showing the DropDown tag but it doesn't show any thing when
I try to explore the childrens of this tag. This works as expected and show
"DropDown" as an option:

<abc:MyControl id="test" runat="server">

<DropDown>

<DropDown>

</abc:MyControl>

But when I try to write any thing inside the DropDown tag, I get no
intellisense and it is expected to show "asp:ListItem" children tags and
when I write them I get a red underline, however, the ListItems that I add
executes fine at run time.

How can I tell the Intellisense to show the children or the DropDown tag? Am
I missing any attribute to do so?

Thanks for your help in advance.

Adam Tibi
Your Insurance Group
 

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,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top