VS 2005 intellisense for complex properties in the XML/HTML designer

A

Adam Tibi

Hi,

I am using 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/HTML (Source) designer . The
intellisense is showing the DropDown tag <DropDown> </DropDown> but it
doesn't show any thing when I try to explore the childrens of this tag (by
writing < between the <DropDown> and </DropDown>) where I expect to have
<asp:ListItem> showing up! However, if I have <asp:ListItem> written inside,
it works as expected at runtime.

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
 
A

Adam Tibi

Hi Teemu,

Thank you for replying, I've been posting this from long but I didn't get
any reply till now.

So, to solve this, I can create an empty class within my namespace and this
class should inherit DropDownList (it is just a way to alias the namespace).

That seems to be the solution, thank you very much
Best regards,
Adam Tibi

Teemu Keiski said:
Hi,

your custom control would need to be in the same namespace with asp:
controls so that Intellisense would work as expected.

More information:
http://aspadvice.com/blogs/joteke/archive/2006/01/27/14886.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke


Adam Tibi said:
Hi,

I am using 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/HTML (Source) designer .
The
intellisense is showing the DropDown tag <DropDown> </DropDown> but it
doesn't show any thing when I try to explore the childrens of this tag
(by
writing < between the <DropDown> and </DropDown>) where I expect to have
<asp:ListItem> showing up! However, if I have <asp:ListItem> written
inside,
it works as expected at runtime.

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,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top