Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / February 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam Tibi - 17 Feb 2006 09:44 GMT
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
Teemu Keiski - 20 Feb 2006 17:31 GMT
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

Signature

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

> Hi,
>
[quoted text clipped - 28 lines]
> Adam Tibi
> Your Insurance Group
Adam Tibi - 21 Feb 2006 14:52 GMT
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

> Hi,
>
[quoted text clipped - 38 lines]
>> Adam Tibi
>> Your Insurance Group

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.