470,810 Members | 1,433 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

Overridden Control and IntelliSense

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,
Apr 16 '07 #1
7 1574
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/mikhailarkhipo...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/subscripti...ult.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/subscripti...t/default.aspx.

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

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

Apr 17 '07 #2
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

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:BL**************@TK2MSFTNGHUB02.phx.gbl...
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/mikhailarkhipo...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/subscripti...ult.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/subscripti...t/default.aspx.

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

This posting is provided "AS IS" with no warranties, and confers no
rights.
Apr 17 '07 #3
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.

Apr 19 '07 #4
Steve,

You have described the exact behavior that I am seeing.

Thanks,

--

Andrew Robinson
"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:XH**************@TK2MSFTNGHUB02.phx.gbl...
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.

Apr 19 '07 #5
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.

Apr 23 '07 #6
Steve,

Any updates on this? Smells like a Visual Studio bug to me.

Thanks,

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:id****************@TK2MSFTNGHUB02.phx.gbl...
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.
Apr 25 '07 #7
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/subscripti...t/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.


Apr 27 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Scott C. Reynolds | last post: by
5 posts views Thread by Marcel Gelijk | last post: by
1 post views Thread by Kris van der Mast | last post: by
5 posts views Thread by Jimmy | last post: by
reply views Thread by Michael Carr | last post: by
3 posts views Thread by Elliot M. Rodriguez | last post: by
8 posts views Thread by Chris | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.