How To Get IntelliSense Support for Child Web User Controls

A

Axel Dahmen

Hi,

in VS 2003/2005 I've created my own TabStrip control. The ASPX code is supposed to look something like this:

<my:TabStrip runat="server" ID="myTabStrip">
<my:Tab>Tab 1</my:Tab>
<my:Tab>Tab 2</my:Tab>
<my:Tab>Tab 3</my:Tab>
</my:TabStrip>

However, Visual Studio doesn't seem to provide IntelliSense support for this. How can I have IntelliSense suggest only my tab controls when typing the opening bracket (like the <Columns> tag shown within the asp:GridView control)?

Is it possible to have IntelliSense also suggest specific built-in controls?

I couldn't find any information on this in Google or search.live.

TIA,
Axel Dahmen
 
S

Steven Cheng[MSFT]

Hi Axel,

From your description, you're going to add design-time html editor's
intellisense support for your custom webserver control, correct?

As for the intellisense support in VS HTML editor, it required certain XML
Schema(matches your custom webcontrol's markup) to help the IDE prompt it.
There are some former articles discussing on how to author such schema:

#Adding Design-Time Support to ASP.NET Controls
http://msdn2.microsoft.com/en-us/library/aa478960.aspx

also, in VS 2005, it seems IDE also support metadata-drived
intellisense(via declaring attributes on your control):

#Metadata-based Intellisense
http://www.nikhilk.net/MetadataBasedIntellisense.aspx

Also, some 3rd party tools has been built for generating such custom
intellisense schemas:

#Intellisense in the HTML Editor for Custom Controls - The Easy Way
http://geekswithblogs.net/decclestone/archive/2006/01/05/64945.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.




--------------------
From: "Axel Dahmen" <[email protected]>
Subject: How To Get IntelliSense Support for Child Web User Controls
Date: Sun, 30 Dec 2007 14:26:05 +0100
Hi,
in VS 2003/2005 I've created my own TabStrip control. The ASPX code is
supposed to look something like this:
<my:TabStrip runat="server" ID="myTabStrip">
<my:Tab>Tab 1</my:Tab>
<my:Tab>Tab 2</my:Tab>
<my:Tab>Tab 3</my:Tab>
</my:TabStrip>
However, Visual Studio doesn't seem to provide IntelliSense support for
this. How can I have IntelliSense suggest only my tab controls when typing
 

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,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top