Overridden Control and IntelliSense

A

Andrew Robinson

I have an overridden control:

public class DJGridView : GridView { }

All works great except that I loose IntelliSense for all of the child
elements while editing the HTML file from within VS2005. Any suggestions on
what I could include within my control to enable this functionality?

Thanks,
 
S

Steven Cheng[MSFT]

Hi Andrew,

As for the Intellisense, it is controlled by the certain XML schema setting
of Visual Studio IDE. ASP.NET built-in server controls have internal XML
schema associated with them. For custom web server control, you may add
your custom schema:

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

#How to add a custom intellisense and validation schema to Visual Web
Developer 2005
http://blogs.msdn.com/mikhailarkhipov/archive/2006/02/01/522614.aspx

Also, for ASP.NET 2.0, the schema generation of web control seems vary from
ASP.NET 1.x, you can have a look at the following blog entry:

http://www.nikhilk.net/MetadataBasedIntellisense.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.
 
A

Andrew Robinson

Steve,

Thanks for the info but I am still pretty stuck. My issue is pretty specific
in that it involves inheriting from an existing control. Nikhil Kothari
stuff is very informative and I am sure he could solve my issue but I don't
see him specifically addressing it.

In my case, I am inheriting form a GridView and all of the top level sub
elements are available such as Columns, but the asp:templateField within the
columns fails to format or expand with intelli sense. The same goes for all
the 2nd level sub tags.

I kind of wounder if this is possibly a VS bug?

-Andy
 
S

Steven Cheng[MSFT]

Thanks for your reply Andy,

For the case that you derive your custom control from an existing well
encapsulated one(like GridView), I've tested and the design-time
intellisense does work abit strange(only top level property will show
intellisense). I'll do some further research to see whether there is any
particular things we've missed.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


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

Steven Cheng[MSFT]

Sure. I'll update you if I get any new info on this.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


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

Steven Cheng[MSFT]

Hi Andrew,

I've replied your mail and currently based on some further discussion with
some engineer, this does likely be an issue of the Visual Studio
design-time intellisense engine as it doesn't correctly reflect the sub
inner properties of overrided custom GridView control. According to the
complexity of further troubleshooting on this issue, if this is an urgent
and high priority problem, I suggest you contact CSS for continue
assistance:

http://msdn.microsoft.com/subscriptions/support/default.aspx

Meanwhile, if there is still anything we can help, please feel free to post
here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


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

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top