all groups > asp.net webcontrols > december 2007 >
You're in the

asp.net webcontrols

group:

How To Get IntelliSense Support for Child Web User Controls



How To Get IntelliSense Support for Child Web User Controls Axel Dahmen
12/30/2007 2:26:05 PM
asp.net webcontrols: 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=3D"server" ID=3D"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
RE: How To Get IntelliSense Support for Child Web User Controls stcheng@online.microsoft.com
12/31/2007 3:30:48 AM
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.




--------------------
[quoted text, click to view]
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)?
[quoted text, click to view]
RE: How To Get IntelliSense Support for Child Web User Controls Axel Dahmen
1/17/2008 11:15:03 AM
Thanks, Steven, for your valuable help!

Best regards,
Axel Dahmen

---------------
[quoted text, click to view]
AddThis Social Bookmark Button