473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1688
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Scott C. Reynolds | last post by:
Hi. I have created a templated control, and I want to know how i can set it up so that the projects consuming it will have all the same intellisense benefits of using any other server control. ...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
1
by: Kris van der Mast | last post by:
Hi, been a while since I posted a question myself instead of trying to help others out. I'm refactoring an existing web app that uses dynamic loading of user controls and a lot of...
5
by: Jimmy | last post by:
Hi I am trying to check whether checkboxes are checked in my user control. I have problems getting the right reference to the checkboxes: <%@ Page language="c#" Codebehind="WebForm2.aspx.cs"...
0
by: Michael Carr | last post by:
I am trying to add a user control to a web form and implement one of the control's events. However, when I add the user control to the form, intellisense doesn't seem to detect it as a control....
3
by: Elliot M. Rodriguez | last post by:
A 3rd party OCX that I am using in a VB.NET app is missing several properties and methods in Intellisense. I know they are missing because I have the complete API reference for the OCX, and if I...
10
by: aarepasky | last post by:
I am using ASP Web 2005 express. I created the user control below and I am listing the html code. I have 2 textboxes. One is txtCompanyName. The main page has 2 panels on it and a button. ...
8
by: Chris | last post by:
Hi, i have in an content page a fieldset containing a label, an iframe and a textarea: <asp:Content ID="Content1" ContentPlaceHolderID="main" Runat="Server"> <fieldset style="width:650px;">...
6
by: wink | last post by:
I'd like to determine if a method has been overridden as was asked here: http://www.velocityreviews.com/forums/t564224-determining-whether-a-derived-class-overrides-a-virtual-memberfunction.html...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.